@instructure/ui-pagination 10.26.1-snapshot-2 → 10.26.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +2 -23
- package/es/Pagination/PaginationArrowButton/index.js +5 -8
- package/es/Pagination/PaginationArrowButton/props.js +8 -1
- package/es/Pagination/PaginationButton/index.js +6 -10
- package/es/Pagination/PaginationButton/props.js +8 -1
- package/es/Pagination/PaginationPageInput/index.js +6 -6
- package/es/Pagination/PaginationPageInput/props.js +11 -1
- package/es/Pagination/index.js +8 -11
- package/es/Pagination/props.js +32 -1
- package/lib/Pagination/PaginationArrowButton/index.js +4 -8
- package/lib/Pagination/PaginationArrowButton/props.js +9 -1
- package/lib/Pagination/PaginationButton/index.js +5 -11
- package/lib/Pagination/PaginationButton/props.js +9 -1
- package/lib/Pagination/PaginationPageInput/index.js +5 -5
- package/lib/Pagination/PaginationPageInput/props.js +12 -1
- package/lib/Pagination/index.js +6 -10
- package/lib/Pagination/props.js +33 -1
- package/package.json +23 -20
- package/src/Pagination/PaginationArrowButton/index.tsx +4 -2
- package/src/Pagination/PaginationArrowButton/props.ts +12 -1
- package/src/Pagination/PaginationButton/index.tsx +4 -2
- package/src/Pagination/PaginationButton/props.ts +12 -2
- package/src/Pagination/PaginationPageInput/index.tsx +5 -6
- package/src/Pagination/PaginationPageInput/props.ts +19 -2
- package/src/Pagination/index.tsx +6 -7
- package/src/Pagination/props.ts +38 -2
- package/tsconfig.build.json +2 -0
- package/tsconfig.build.tsbuildinfo +1 -1
- package/types/Pagination/PaginationArrowButton/index.d.ts +6 -0
- package/types/Pagination/PaginationArrowButton/index.d.ts.map +1 -1
- package/types/Pagination/PaginationArrowButton/props.d.ts +3 -2
- package/types/Pagination/PaginationArrowButton/props.d.ts.map +1 -1
- package/types/Pagination/PaginationButton/index.d.ts +6 -0
- package/types/Pagination/PaginationButton/index.d.ts.map +1 -1
- package/types/Pagination/PaginationButton/props.d.ts +3 -2
- package/types/Pagination/PaginationButton/props.d.ts.map +1 -1
- package/types/Pagination/PaginationPageInput/index.d.ts +9 -0
- package/types/Pagination/PaginationPageInput/index.d.ts.map +1 -1
- package/types/Pagination/PaginationPageInput/props.d.ts +3 -2
- package/types/Pagination/PaginationPageInput/props.d.ts.map +1 -1
- package/types/Pagination/index.d.ts +28 -0
- package/types/Pagination/index.d.ts.map +1 -1
- package/types/Pagination/props.d.ts +3 -2
- package/types/Pagination/props.d.ts.map +1 -1
package/CHANGELOG.md
CHANGED
|
@@ -3,30 +3,9 @@
|
|
|
3
3
|
All notable changes to this project will be documented in this file.
|
|
4
4
|
See [Conventional Commits](https://conventionalcommits.org) for commit guidelines.
|
|
5
5
|
|
|
6
|
-
## [10.26.1
|
|
6
|
+
## [10.26.1](https://github.com/instructure/instructure-ui/compare/v10.26.0...v10.26.1) (2025-10-06)
|
|
7
7
|
|
|
8
|
-
|
|
9
|
-
### Features
|
|
10
|
-
|
|
11
|
-
* **many:** instUI v11 release ([36f5438](https://github.com/instructure/instructure-ui/commit/36f54382669186227ba24798bbf7201ef2f5cd4c))
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
### BREAKING CHANGES
|
|
15
|
-
|
|
16
|
-
* **many:** InstUI v11 contains the following breaking changes:
|
|
17
|
-
- React 16 and 17 are no longer supported
|
|
18
|
-
- remove `PropTypes` from all packages
|
|
19
|
-
- remove `CodeEditor` component
|
|
20
|
-
- remove `@instui/theme-registry` package
|
|
21
|
-
- remove `@testable`, `@experimental`, `@hack` decorators
|
|
22
|
-
- InstUISettingsProvider's `as` prop is removed
|
|
23
|
-
- `canvas.use()`, `canvasHighContrast.use()` functions are removed
|
|
24
|
-
- `canvasThemeLocal`, `canvasHighContrastThemeLocal` are removed
|
|
25
|
-
- `variables` field on theme objects are removed
|
|
26
|
-
- remove deprecated props from Table: Row's `isStacked`, Body's
|
|
27
|
-
`isStacked`, `hover`, and `headers`
|
|
28
|
-
- `Table`'s `caption` prop is now required
|
|
29
|
-
- `ui-dom-utils`'s `getComputedStyle` can now return `undefined`
|
|
8
|
+
**Note:** Version bump only for package @instructure/ui-pagination
|
|
30
9
|
|
|
31
10
|
|
|
32
11
|
|
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
import _objectWithoutProperties from "@babel/runtime/helpers/esm/objectWithoutProperties";
|
|
2
2
|
const _excluded = ["label", "direction", "buttonRef"];
|
|
3
|
+
var _dec, _class, _PaginationArrowButton;
|
|
3
4
|
/*
|
|
4
5
|
* The MIT License (MIT)
|
|
5
6
|
*
|
|
@@ -29,7 +30,8 @@ import { IconButton } from '@instructure/ui-buttons';
|
|
|
29
30
|
import { PresentationContent } from '@instructure/ui-a11y-content';
|
|
30
31
|
import { Tooltip } from '@instructure/ui-tooltip';
|
|
31
32
|
import { IconArrowOpenStartSolid, IconArrowOpenEndSolid, IconArrowDoubleStartSolid, IconArrowDoubleEndSolid } from '@instructure/ui-icons';
|
|
32
|
-
import {
|
|
33
|
+
import { testable } from '@instructure/ui-testable';
|
|
34
|
+
import { allowedProps, propTypes } from './props';
|
|
33
35
|
|
|
34
36
|
/**
|
|
35
37
|
---
|
|
@@ -38,7 +40,7 @@ id: Pagination.Navigation
|
|
|
38
40
|
---
|
|
39
41
|
**/
|
|
40
42
|
import { jsx as _jsx } from "@emotion/react/jsx-runtime";
|
|
41
|
-
class PaginationArrowButton extends Component {
|
|
43
|
+
let PaginationArrowButton = (_dec = testable(), _dec(_class = (_PaginationArrowButton = class PaginationArrowButton extends Component {
|
|
42
44
|
constructor(...args) {
|
|
43
45
|
super(...args);
|
|
44
46
|
this.ref = null;
|
|
@@ -91,15 +93,10 @@ class PaginationArrowButton extends Component {
|
|
|
91
93
|
rel: props.href || props.to ? direction : void 0,
|
|
92
94
|
elementRef: buttonRef,
|
|
93
95
|
margin: this.margin,
|
|
94
|
-
"data-cid": "PaginationArrowButton",
|
|
95
96
|
children: this.Icon
|
|
96
97
|
})
|
|
97
98
|
});
|
|
98
99
|
}
|
|
99
|
-
}
|
|
100
|
-
PaginationArrowButton.displayName = "PaginationArrowButton";
|
|
101
|
-
PaginationArrowButton.componentId = 'Pagination.Navigation';
|
|
102
|
-
PaginationArrowButton.allowedProps = allowedProps;
|
|
103
|
-
PaginationArrowButton.defaultProps = {};
|
|
100
|
+
}, _PaginationArrowButton.displayName = "PaginationArrowButton", _PaginationArrowButton.componentId = 'Pagination.Navigation', _PaginationArrowButton.allowedProps = allowedProps, _PaginationArrowButton.propTypes = propTypes, _PaginationArrowButton.defaultProps = {}, _PaginationArrowButton)) || _class);
|
|
104
101
|
export default PaginationArrowButton;
|
|
105
102
|
export { PaginationArrowButton };
|
|
@@ -22,9 +22,16 @@
|
|
|
22
22
|
* SOFTWARE.
|
|
23
23
|
*/
|
|
24
24
|
|
|
25
|
+
import PropTypes from 'prop-types';
|
|
26
|
+
const propTypes = {
|
|
27
|
+
direction: PropTypes.oneOf(['first', 'prev', 'next', 'last']),
|
|
28
|
+
label: PropTypes.string.isRequired,
|
|
29
|
+
buttonRef: PropTypes.func,
|
|
30
|
+
onClick: PropTypes.func
|
|
31
|
+
};
|
|
25
32
|
const allowedProps = ['direction', 'label', 'buttonRef'
|
|
26
33
|
|
|
27
34
|
// we don't want to pass onClick
|
|
28
35
|
// 'onClick'
|
|
29
36
|
];
|
|
30
|
-
export { allowedProps };
|
|
37
|
+
export { propTypes, allowedProps };
|
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
var _dec, _class, _PaginationButton;
|
|
1
2
|
/*
|
|
2
3
|
* The MIT License (MIT)
|
|
3
4
|
*
|
|
@@ -25,7 +26,8 @@
|
|
|
25
26
|
import { Component } from 'react';
|
|
26
27
|
import { BaseButton } from '@instructure/ui-buttons';
|
|
27
28
|
import { omitProps } from '@instructure/ui-react-utils';
|
|
28
|
-
import {
|
|
29
|
+
import { testable } from '@instructure/ui-testable';
|
|
30
|
+
import { propTypes, allowedProps } from './props';
|
|
29
31
|
import { jsx as _jsx } from "@emotion/react/jsx-runtime";
|
|
30
32
|
/**
|
|
31
33
|
---
|
|
@@ -33,8 +35,7 @@ parent: Pagination
|
|
|
33
35
|
id: Pagination.Page
|
|
34
36
|
---
|
|
35
37
|
**/
|
|
36
|
-
|
|
37
|
-
class PaginationButton extends Component {
|
|
38
|
+
let PaginationButton = (_dec = testable(), _dec(_class = (_PaginationButton = class PaginationButton extends Component {
|
|
38
39
|
constructor(...args) {
|
|
39
40
|
super(...args);
|
|
40
41
|
this.ref = null;
|
|
@@ -53,7 +54,6 @@ class PaginationButton extends Component {
|
|
|
53
54
|
},
|
|
54
55
|
children: _jsx(BaseButton, {
|
|
55
56
|
color: "primary",
|
|
56
|
-
"data-cid": "PaginationButton",
|
|
57
57
|
withBackground: this.props.current,
|
|
58
58
|
withBorder: this.props.current,
|
|
59
59
|
...props,
|
|
@@ -66,12 +66,8 @@ class PaginationButton extends Component {
|
|
|
66
66
|
})
|
|
67
67
|
});
|
|
68
68
|
}
|
|
69
|
-
}
|
|
70
|
-
PaginationButton.displayName = "PaginationButton";
|
|
71
|
-
PaginationButton.componentId = 'Pagination.Page';
|
|
72
|
-
PaginationButton.allowedProps = allowedProps;
|
|
73
|
-
PaginationButton.defaultProps = {
|
|
69
|
+
}, _PaginationButton.displayName = "PaginationButton", _PaginationButton.componentId = 'Pagination.Page', _PaginationButton.propTypes = propTypes, _PaginationButton.allowedProps = allowedProps, _PaginationButton.defaultProps = {
|
|
74
70
|
current: false
|
|
75
|
-
};
|
|
71
|
+
}, _PaginationButton)) || _class);
|
|
76
72
|
export default PaginationButton;
|
|
77
73
|
export { PaginationButton };
|
|
@@ -22,8 +22,15 @@
|
|
|
22
22
|
* SOFTWARE.
|
|
23
23
|
*/
|
|
24
24
|
|
|
25
|
+
import PropTypes from 'prop-types';
|
|
26
|
+
const propTypes = {
|
|
27
|
+
children: PropTypes.node.isRequired,
|
|
28
|
+
current: PropTypes.bool,
|
|
29
|
+
onClick: PropTypes.func,
|
|
30
|
+
screenReaderLabel: PropTypes.string
|
|
31
|
+
};
|
|
25
32
|
const allowedProps = ['children', 'current', 'screenReaderLabel'
|
|
26
33
|
// we don't want to pass onClick
|
|
27
34
|
// 'onClick'
|
|
28
35
|
];
|
|
29
|
-
export { allowedProps };
|
|
36
|
+
export { propTypes, allowedProps };
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
var _dec, _class, _PaginationPageInput;
|
|
1
|
+
var _dec, _dec2, _class, _PaginationPageInput;
|
|
2
2
|
/*
|
|
3
3
|
* The MIT License (MIT)
|
|
4
4
|
*
|
|
@@ -24,12 +24,13 @@ var _dec, _class, _PaginationPageInput;
|
|
|
24
24
|
*/
|
|
25
25
|
|
|
26
26
|
import { Component } from 'react';
|
|
27
|
+
import { testable } from '@instructure/ui-testable';
|
|
27
28
|
import { withStyle } from '@instructure/emotion';
|
|
28
29
|
import { NumberInput } from '@instructure/ui-number-input';
|
|
29
30
|
import { ScreenReaderContent } from '@instructure/ui-a11y-content';
|
|
30
31
|
import generateStyle from './styles';
|
|
31
32
|
import generateComponentTheme from './theme';
|
|
32
|
-
import { allowedProps } from './props';
|
|
33
|
+
import { propTypes, allowedProps } from './props';
|
|
33
34
|
import { jsx as _jsx, jsxs as _jsxs } from "@emotion/react/jsx-runtime";
|
|
34
35
|
/**
|
|
35
36
|
---
|
|
@@ -37,7 +38,7 @@ parent: Pagination
|
|
|
37
38
|
id: Pagination.PageInput
|
|
38
39
|
---
|
|
39
40
|
**/
|
|
40
|
-
let PaginationPageInput = (_dec = withStyle(generateStyle, generateComponentTheme), _dec(_class = (_PaginationPageInput = class PaginationPageInput extends Component {
|
|
41
|
+
let PaginationPageInput = (_dec = withStyle(generateStyle, generateComponentTheme), _dec2 = testable(), _dec(_class = _dec2(_class = (_PaginationPageInput = class PaginationPageInput extends Component {
|
|
41
42
|
constructor(props) {
|
|
42
43
|
super(props);
|
|
43
44
|
this.ref = null;
|
|
@@ -159,7 +160,6 @@ let PaginationPageInput = (_dec = withStyle(generateStyle, generateComponentThem
|
|
|
159
160
|
return _jsxs("span", {
|
|
160
161
|
css: styles === null || styles === void 0 ? void 0 : styles.paginationPageInput,
|
|
161
162
|
ref: this.handleRef,
|
|
162
|
-
"data-cid": "PaginationPageInput",
|
|
163
163
|
children: [_jsx("span", {
|
|
164
164
|
css: styles === null || styles === void 0 ? void 0 : styles.numberInput,
|
|
165
165
|
children: _jsx(NumberInput, {
|
|
@@ -179,8 +179,8 @@ let PaginationPageInput = (_dec = withStyle(generateStyle, generateComponentThem
|
|
|
179
179
|
}), this.renderLabel()]
|
|
180
180
|
});
|
|
181
181
|
}
|
|
182
|
-
}, _PaginationPageInput.displayName = "PaginationPageInput", _PaginationPageInput.componentId = 'Pagination.PageInput', _PaginationPageInput.allowedProps = allowedProps, _PaginationPageInput.defaultProps = {
|
|
182
|
+
}, _PaginationPageInput.displayName = "PaginationPageInput", _PaginationPageInput.componentId = 'Pagination.PageInput', _PaginationPageInput.propTypes = propTypes, _PaginationPageInput.allowedProps = allowedProps, _PaginationPageInput.defaultProps = {
|
|
183
183
|
disabled: false
|
|
184
|
-
}, _PaginationPageInput)) || _class);
|
|
184
|
+
}, _PaginationPageInput)) || _class) || _class);
|
|
185
185
|
export default PaginationPageInput;
|
|
186
186
|
export { PaginationPageInput };
|
|
@@ -22,5 +22,15 @@
|
|
|
22
22
|
* SOFTWARE.
|
|
23
23
|
*/
|
|
24
24
|
|
|
25
|
+
import PropTypes from 'prop-types';
|
|
26
|
+
const propTypes = {
|
|
27
|
+
numberOfPages: PropTypes.number.isRequired,
|
|
28
|
+
currentPageIndex: PropTypes.number.isRequired,
|
|
29
|
+
onChange: PropTypes.func.isRequired,
|
|
30
|
+
screenReaderLabel: PropTypes.func.isRequired,
|
|
31
|
+
label: PropTypes.func,
|
|
32
|
+
disabled: PropTypes.bool,
|
|
33
|
+
inputRef: PropTypes.func
|
|
34
|
+
};
|
|
25
35
|
const allowedProps = ['numberOfPages', 'currentPageIndex', 'onChange', 'screenReaderLabel', 'label', 'disabled', 'inputRef'];
|
|
26
|
-
export { allowedProps };
|
|
36
|
+
export { propTypes, allowedProps };
|
package/es/Pagination/index.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
var _dec, _dec2, _class, _Pagination;
|
|
1
|
+
var _dec, _dec2, _dec3, _class, _Pagination;
|
|
2
2
|
/*
|
|
3
3
|
* The MIT License (MIT)
|
|
4
4
|
*
|
|
@@ -22,8 +22,10 @@ var _dec, _dec2, _class, _Pagination;
|
|
|
22
22
|
* OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
|
|
23
23
|
* SOFTWARE.
|
|
24
24
|
*/
|
|
25
|
+
|
|
25
26
|
import { cloneElement, Children, Component } from 'react';
|
|
26
27
|
import { View } from '@instructure/ui-view';
|
|
28
|
+
import { testable } from '@instructure/ui-testable';
|
|
27
29
|
import { omitProps, withDeterministicId } from '@instructure/ui-react-utils';
|
|
28
30
|
import { hasVisibleChildren } from '@instructure/ui-a11y-utils';
|
|
29
31
|
import { findTabbable, getActiveElement } from '@instructure/ui-dom-utils';
|
|
@@ -33,7 +35,7 @@ import { PaginationArrowButton } from './PaginationArrowButton';
|
|
|
33
35
|
import { PaginationPageInput } from './PaginationPageInput';
|
|
34
36
|
import generateStyle from './styles';
|
|
35
37
|
import generateComponentTheme from './theme';
|
|
36
|
-
import { allowedProps } from './props';
|
|
38
|
+
import { propTypes, allowedProps } from './props';
|
|
37
39
|
import { jsx as _jsx, jsxs as _jsxs } from "@emotion/react/jsx-runtime";
|
|
38
40
|
/** This is an [].findIndex optimized to work on really big, but sparse, arrays */
|
|
39
41
|
const fastFindIndex = (arr, fn) => Number(Object.keys(arr).find(k => fn(arr[Number(k)])));
|
|
@@ -53,7 +55,7 @@ function propsHaveCompactView(props) {
|
|
|
53
55
|
category: components
|
|
54
56
|
---
|
|
55
57
|
**/
|
|
56
|
-
let Pagination = (_dec = withDeterministicId(), _dec2 = withStyle(generateStyle, generateComponentTheme), _dec(_class = _dec2(_class = (_Pagination = class Pagination extends Component {
|
|
58
|
+
let Pagination = (_dec = withDeterministicId(), _dec2 = withStyle(generateStyle, generateComponentTheme), _dec3 = testable(), _dec(_class = _dec2(_class = _dec3(_class = (_Pagination = class Pagination extends Component {
|
|
57
59
|
constructor(props) {
|
|
58
60
|
super(props);
|
|
59
61
|
this._labelId = void 0;
|
|
@@ -103,11 +105,7 @@ let Pagination = (_dec = withDeterministicId(), _dec2 = withStyle(generateStyle,
|
|
|
103
105
|
for (let i = from; i <= to; i++) {
|
|
104
106
|
var _this$props$renderPag, _this$props3;
|
|
105
107
|
pages.push(_jsx(Pagination.Page, {
|
|
106
|
-
ref: e =>
|
|
107
|
-
if (i === currentPage) {
|
|
108
|
-
this.currentPageRef = e;
|
|
109
|
-
}
|
|
110
|
-
},
|
|
108
|
+
ref: e => i === currentPage ? this.currentPageRef = e : null,
|
|
111
109
|
onClick: () => this.handleNavigation(i, currentPage),
|
|
112
110
|
onMouseEnter: () => this.handleOnMouseEnter(i),
|
|
113
111
|
current: i === currentPage,
|
|
@@ -442,7 +440,6 @@ let Pagination = (_dec = withDeterministicId(), _dec2 = withStyle(generateStyle,
|
|
|
442
440
|
margin: this.props.margin,
|
|
443
441
|
css: (_this$props$styles4 = this.props.styles) === null || _this$props$styles4 === void 0 ? void 0 : _this$props$styles4.pagination,
|
|
444
442
|
"aria-labelledby": this.props.label ? this._labelId : void 0,
|
|
445
|
-
"data-cid": "Pagination",
|
|
446
443
|
children: [this.props.label && this.renderLabel(), _jsxs(View, {
|
|
447
444
|
display: "inline-block",
|
|
448
445
|
css: (_this$props$styles5 = this.props.styles) === null || _this$props$styles5 === void 0 ? void 0 : _this$props$styles5.pages,
|
|
@@ -450,7 +447,7 @@ let Pagination = (_dec = withDeterministicId(), _dec2 = withStyle(generateStyle,
|
|
|
450
447
|
})]
|
|
451
448
|
});
|
|
452
449
|
}
|
|
453
|
-
}, _Pagination.displayName = "Pagination", _Pagination.componentId = 'Pagination', _Pagination.allowedProps = allowedProps, _Pagination.defaultProps = {
|
|
450
|
+
}, _Pagination.displayName = "Pagination", _Pagination.componentId = 'Pagination', _Pagination.propTypes = propTypes, _Pagination.allowedProps = allowedProps, _Pagination.defaultProps = {
|
|
454
451
|
disabled: false,
|
|
455
452
|
withFirstAndLastButton: false,
|
|
456
453
|
showDisabledButtons: false,
|
|
@@ -466,6 +463,6 @@ let Pagination = (_dec = withDeterministicId(), _dec2 = withStyle(generateStyle,
|
|
|
466
463
|
ellipsis: '…',
|
|
467
464
|
renderPageIndicator: page => page,
|
|
468
465
|
margin: 'space8'
|
|
469
|
-
}, _Pagination.Page = PaginationButton, _Pagination.Navigation = PaginationArrowButton, _Pagination)) || _class) || _class);
|
|
466
|
+
}, _Pagination.Page = PaginationButton, _Pagination.Navigation = PaginationArrowButton, _Pagination)) || _class) || _class) || _class);
|
|
470
467
|
export default Pagination;
|
|
471
468
|
export { Pagination, PaginationButton };
|
package/es/Pagination/props.js
CHANGED
|
@@ -22,5 +22,36 @@
|
|
|
22
22
|
* SOFTWARE.
|
|
23
23
|
*/
|
|
24
24
|
|
|
25
|
+
import PropTypes from 'prop-types';
|
|
26
|
+
import { Children } from '@instructure/ui-prop-types';
|
|
27
|
+
import { PaginationButton } from './PaginationButton';
|
|
28
|
+
const propTypes = {
|
|
29
|
+
children: Children.oneOf([PaginationButton]),
|
|
30
|
+
disabled: PropTypes.bool,
|
|
31
|
+
withFirstAndLastButton: PropTypes.bool,
|
|
32
|
+
showDisabledButtons: PropTypes.bool,
|
|
33
|
+
label: PropTypes.node,
|
|
34
|
+
labelNext: PropTypes.string,
|
|
35
|
+
labelPrev: PropTypes.string,
|
|
36
|
+
labelFirst: PropTypes.string,
|
|
37
|
+
labelLast: PropTypes.string,
|
|
38
|
+
labelNumberInput: PropTypes.func,
|
|
39
|
+
screenReaderLabelNumberInput: PropTypes.func,
|
|
40
|
+
screenReaderLabelPageButton: PropTypes.func,
|
|
41
|
+
variant: PropTypes.oneOf(['full', 'compact', 'input']),
|
|
42
|
+
margin: PropTypes.string,
|
|
43
|
+
as: PropTypes.elementType,
|
|
44
|
+
elementRef: PropTypes.func,
|
|
45
|
+
inputRef: PropTypes.func,
|
|
46
|
+
shouldHandleFocus: PropTypes.bool,
|
|
47
|
+
totalPageNumber: PropTypes.number,
|
|
48
|
+
currentPage: PropTypes.number,
|
|
49
|
+
siblingCount: PropTypes.number,
|
|
50
|
+
boundaryCount: PropTypes.number,
|
|
51
|
+
onPageChange: PropTypes.func,
|
|
52
|
+
onMouseEnter: PropTypes.func,
|
|
53
|
+
renderPageIndicator: PropTypes.func,
|
|
54
|
+
ellipsis: PropTypes.node
|
|
55
|
+
};
|
|
25
56
|
const allowedProps = ['children', 'disabled', 'withFirstAndLastButton', 'showDisabledButtons', 'label', 'labelNext', 'labelPrev', 'labelFirst', 'labelLast', 'labelNumberInput', 'screenReaderLabelNumberInput', 'screenReaderLabelPageButton', 'variant', 'margin', 'as', 'elementRef', 'inputRef', 'shouldHandleFocus', 'totalPageNumber', 'currentPage', 'onPageChange', 'siblingCount', 'boundaryCount', 'renderPageIndicator', 'ellipsis', 'onMouseEnter'];
|
|
26
|
-
export { allowedProps };
|
|
57
|
+
export { propTypes, allowedProps };
|
|
@@ -14,9 +14,11 @@ var _IconArrowOpenStartSolid = require("@instructure/ui-icons/lib/IconArrowOpenS
|
|
|
14
14
|
var _IconArrowOpenEndSolid = require("@instructure/ui-icons/lib/IconArrowOpenEndSolid.js");
|
|
15
15
|
var _IconArrowDoubleStartSolid = require("@instructure/ui-icons/lib/IconArrowDoubleStartSolid.js");
|
|
16
16
|
var _IconArrowDoubleEndSolid = require("@instructure/ui-icons/lib/IconArrowDoubleEndSolid.js");
|
|
17
|
+
var _testable = require("@instructure/ui-testable/lib/testable.js");
|
|
17
18
|
var _props = require("./props");
|
|
18
19
|
var _jsxRuntime = require("@emotion/react/jsx-runtime");
|
|
19
20
|
const _excluded = ["label", "direction", "buttonRef"];
|
|
21
|
+
var _dec, _class, _PaginationArrowButton;
|
|
20
22
|
/*
|
|
21
23
|
* The MIT License (MIT)
|
|
22
24
|
*
|
|
@@ -46,7 +48,7 @@ parent: Pagination
|
|
|
46
48
|
id: Pagination.Navigation
|
|
47
49
|
---
|
|
48
50
|
**/
|
|
49
|
-
class PaginationArrowButton extends _react.Component {
|
|
51
|
+
let PaginationArrowButton = exports.PaginationArrowButton = (_dec = (0, _testable.testable)(), _dec(_class = (_PaginationArrowButton = class PaginationArrowButton extends _react.Component {
|
|
50
52
|
constructor(...args) {
|
|
51
53
|
super(...args);
|
|
52
54
|
this.ref = null;
|
|
@@ -99,15 +101,9 @@ class PaginationArrowButton extends _react.Component {
|
|
|
99
101
|
rel: props.href || props.to ? direction : void 0,
|
|
100
102
|
elementRef: buttonRef,
|
|
101
103
|
margin: this.margin,
|
|
102
|
-
"data-cid": "PaginationArrowButton",
|
|
103
104
|
children: this.Icon
|
|
104
105
|
})
|
|
105
106
|
});
|
|
106
107
|
}
|
|
107
|
-
}
|
|
108
|
-
exports.PaginationArrowButton = PaginationArrowButton;
|
|
109
|
-
PaginationArrowButton.displayName = "PaginationArrowButton";
|
|
110
|
-
PaginationArrowButton.componentId = 'Pagination.Navigation';
|
|
111
|
-
PaginationArrowButton.allowedProps = _props.allowedProps;
|
|
112
|
-
PaginationArrowButton.defaultProps = {};
|
|
108
|
+
}, _PaginationArrowButton.displayName = "PaginationArrowButton", _PaginationArrowButton.componentId = 'Pagination.Navigation', _PaginationArrowButton.allowedProps = _props.allowedProps, _PaginationArrowButton.propTypes = _props.propTypes, _PaginationArrowButton.defaultProps = {}, _PaginationArrowButton)) || _class);
|
|
113
109
|
var _default = exports.default = PaginationArrowButton;
|
|
@@ -1,9 +1,11 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
|
|
3
|
+
var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefault").default;
|
|
3
4
|
Object.defineProperty(exports, "__esModule", {
|
|
4
5
|
value: true
|
|
5
6
|
});
|
|
6
|
-
exports.allowedProps = void 0;
|
|
7
|
+
exports.propTypes = exports.allowedProps = void 0;
|
|
8
|
+
var _propTypes = _interopRequireDefault(require("prop-types"));
|
|
7
9
|
/*
|
|
8
10
|
* The MIT License (MIT)
|
|
9
11
|
*
|
|
@@ -28,6 +30,12 @@ exports.allowedProps = void 0;
|
|
|
28
30
|
* SOFTWARE.
|
|
29
31
|
*/
|
|
30
32
|
|
|
33
|
+
const propTypes = exports.propTypes = {
|
|
34
|
+
direction: _propTypes.default.oneOf(['first', 'prev', 'next', 'last']),
|
|
35
|
+
label: _propTypes.default.string.isRequired,
|
|
36
|
+
buttonRef: _propTypes.default.func,
|
|
37
|
+
onClick: _propTypes.default.func
|
|
38
|
+
};
|
|
31
39
|
const allowedProps = exports.allowedProps = ['direction', 'label', 'buttonRef'
|
|
32
40
|
|
|
33
41
|
// we don't want to pass onClick
|
|
@@ -7,8 +7,10 @@ exports.default = exports.PaginationButton = void 0;
|
|
|
7
7
|
var _react = require("react");
|
|
8
8
|
var _BaseButton = require("@instructure/ui-buttons/lib/BaseButton");
|
|
9
9
|
var _omitProps = require("@instructure/ui-react-utils/lib/omitProps.js");
|
|
10
|
+
var _testable = require("@instructure/ui-testable/lib/testable.js");
|
|
10
11
|
var _props = require("./props");
|
|
11
12
|
var _jsxRuntime = require("@emotion/react/jsx-runtime");
|
|
13
|
+
var _dec, _class, _PaginationButton;
|
|
12
14
|
/*
|
|
13
15
|
* The MIT License (MIT)
|
|
14
16
|
*
|
|
@@ -32,15 +34,13 @@ var _jsxRuntime = require("@emotion/react/jsx-runtime");
|
|
|
32
34
|
* OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
|
|
33
35
|
* SOFTWARE.
|
|
34
36
|
*/
|
|
35
|
-
|
|
36
37
|
/**
|
|
37
38
|
---
|
|
38
39
|
parent: Pagination
|
|
39
40
|
id: Pagination.Page
|
|
40
41
|
---
|
|
41
42
|
**/
|
|
42
|
-
|
|
43
|
-
class PaginationButton extends _react.Component {
|
|
43
|
+
let PaginationButton = exports.PaginationButton = (_dec = (0, _testable.testable)(), _dec(_class = (_PaginationButton = class PaginationButton extends _react.Component {
|
|
44
44
|
constructor(...args) {
|
|
45
45
|
super(...args);
|
|
46
46
|
this.ref = null;
|
|
@@ -59,7 +59,6 @@ class PaginationButton extends _react.Component {
|
|
|
59
59
|
},
|
|
60
60
|
children: (0, _jsxRuntime.jsx)(_BaseButton.BaseButton, {
|
|
61
61
|
color: "primary",
|
|
62
|
-
"data-cid": "PaginationButton",
|
|
63
62
|
withBackground: this.props.current,
|
|
64
63
|
withBorder: this.props.current,
|
|
65
64
|
...props,
|
|
@@ -72,12 +71,7 @@ class PaginationButton extends _react.Component {
|
|
|
72
71
|
})
|
|
73
72
|
});
|
|
74
73
|
}
|
|
75
|
-
}
|
|
76
|
-
exports.PaginationButton = PaginationButton;
|
|
77
|
-
PaginationButton.displayName = "PaginationButton";
|
|
78
|
-
PaginationButton.componentId = 'Pagination.Page';
|
|
79
|
-
PaginationButton.allowedProps = _props.allowedProps;
|
|
80
|
-
PaginationButton.defaultProps = {
|
|
74
|
+
}, _PaginationButton.displayName = "PaginationButton", _PaginationButton.componentId = 'Pagination.Page', _PaginationButton.propTypes = _props.propTypes, _PaginationButton.allowedProps = _props.allowedProps, _PaginationButton.defaultProps = {
|
|
81
75
|
current: false
|
|
82
|
-
};
|
|
76
|
+
}, _PaginationButton)) || _class);
|
|
83
77
|
var _default = exports.default = PaginationButton;
|
|
@@ -1,9 +1,11 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
|
|
3
|
+
var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefault").default;
|
|
3
4
|
Object.defineProperty(exports, "__esModule", {
|
|
4
5
|
value: true
|
|
5
6
|
});
|
|
6
|
-
exports.allowedProps = void 0;
|
|
7
|
+
exports.propTypes = exports.allowedProps = void 0;
|
|
8
|
+
var _propTypes = _interopRequireDefault(require("prop-types"));
|
|
7
9
|
/*
|
|
8
10
|
* The MIT License (MIT)
|
|
9
11
|
*
|
|
@@ -28,6 +30,12 @@ exports.allowedProps = void 0;
|
|
|
28
30
|
* SOFTWARE.
|
|
29
31
|
*/
|
|
30
32
|
|
|
33
|
+
const propTypes = exports.propTypes = {
|
|
34
|
+
children: _propTypes.default.node.isRequired,
|
|
35
|
+
current: _propTypes.default.bool,
|
|
36
|
+
onClick: _propTypes.default.func,
|
|
37
|
+
screenReaderLabel: _propTypes.default.string
|
|
38
|
+
};
|
|
31
39
|
const allowedProps = exports.allowedProps = ['children', 'current', 'screenReaderLabel'
|
|
32
40
|
// we don't want to pass onClick
|
|
33
41
|
// 'onClick'
|
|
@@ -6,6 +6,7 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
6
6
|
});
|
|
7
7
|
exports.default = exports.PaginationPageInput = void 0;
|
|
8
8
|
var _react = require("react");
|
|
9
|
+
var _testable = require("@instructure/ui-testable/lib/testable.js");
|
|
9
10
|
var _emotion = require("@instructure/emotion");
|
|
10
11
|
var _NumberInput = require("@instructure/ui-number-input/lib/NumberInput");
|
|
11
12
|
var _ScreenReaderContent = require("@instructure/ui-a11y-content/lib/ScreenReaderContent");
|
|
@@ -13,7 +14,7 @@ var _styles = _interopRequireDefault(require("./styles"));
|
|
|
13
14
|
var _theme = _interopRequireDefault(require("./theme"));
|
|
14
15
|
var _props = require("./props");
|
|
15
16
|
var _jsxRuntime = require("@emotion/react/jsx-runtime");
|
|
16
|
-
var _dec, _class, _PaginationPageInput;
|
|
17
|
+
var _dec, _dec2, _class, _PaginationPageInput;
|
|
17
18
|
/*
|
|
18
19
|
* The MIT License (MIT)
|
|
19
20
|
*
|
|
@@ -43,7 +44,7 @@ parent: Pagination
|
|
|
43
44
|
id: Pagination.PageInput
|
|
44
45
|
---
|
|
45
46
|
**/
|
|
46
|
-
let PaginationPageInput = exports.PaginationPageInput = (_dec = (0, _emotion.withStyle)(_styles.default, _theme.default), _dec(_class = (_PaginationPageInput = class PaginationPageInput extends _react.Component {
|
|
47
|
+
let PaginationPageInput = exports.PaginationPageInput = (_dec = (0, _emotion.withStyle)(_styles.default, _theme.default), _dec2 = (0, _testable.testable)(), _dec(_class = _dec2(_class = (_PaginationPageInput = class PaginationPageInput extends _react.Component {
|
|
47
48
|
constructor(props) {
|
|
48
49
|
super(props);
|
|
49
50
|
this.ref = null;
|
|
@@ -165,7 +166,6 @@ let PaginationPageInput = exports.PaginationPageInput = (_dec = (0, _emotion.wit
|
|
|
165
166
|
return (0, _jsxRuntime.jsxs)("span", {
|
|
166
167
|
css: styles === null || styles === void 0 ? void 0 : styles.paginationPageInput,
|
|
167
168
|
ref: this.handleRef,
|
|
168
|
-
"data-cid": "PaginationPageInput",
|
|
169
169
|
children: [(0, _jsxRuntime.jsx)("span", {
|
|
170
170
|
css: styles === null || styles === void 0 ? void 0 : styles.numberInput,
|
|
171
171
|
children: (0, _jsxRuntime.jsx)(_NumberInput.NumberInput, {
|
|
@@ -185,7 +185,7 @@ let PaginationPageInput = exports.PaginationPageInput = (_dec = (0, _emotion.wit
|
|
|
185
185
|
}), this.renderLabel()]
|
|
186
186
|
});
|
|
187
187
|
}
|
|
188
|
-
}, _PaginationPageInput.displayName = "PaginationPageInput", _PaginationPageInput.componentId = 'Pagination.PageInput', _PaginationPageInput.allowedProps = _props.allowedProps, _PaginationPageInput.defaultProps = {
|
|
188
|
+
}, _PaginationPageInput.displayName = "PaginationPageInput", _PaginationPageInput.componentId = 'Pagination.PageInput', _PaginationPageInput.propTypes = _props.propTypes, _PaginationPageInput.allowedProps = _props.allowedProps, _PaginationPageInput.defaultProps = {
|
|
189
189
|
disabled: false
|
|
190
|
-
}, _PaginationPageInput)) || _class);
|
|
190
|
+
}, _PaginationPageInput)) || _class) || _class);
|
|
191
191
|
var _default = exports.default = PaginationPageInput;
|
|
@@ -1,9 +1,11 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
|
|
3
|
+
var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefault").default;
|
|
3
4
|
Object.defineProperty(exports, "__esModule", {
|
|
4
5
|
value: true
|
|
5
6
|
});
|
|
6
|
-
exports.allowedProps = void 0;
|
|
7
|
+
exports.propTypes = exports.allowedProps = void 0;
|
|
8
|
+
var _propTypes = _interopRequireDefault(require("prop-types"));
|
|
7
9
|
/*
|
|
8
10
|
* The MIT License (MIT)
|
|
9
11
|
*
|
|
@@ -28,4 +30,13 @@ exports.allowedProps = void 0;
|
|
|
28
30
|
* SOFTWARE.
|
|
29
31
|
*/
|
|
30
32
|
|
|
33
|
+
const propTypes = exports.propTypes = {
|
|
34
|
+
numberOfPages: _propTypes.default.number.isRequired,
|
|
35
|
+
currentPageIndex: _propTypes.default.number.isRequired,
|
|
36
|
+
onChange: _propTypes.default.func.isRequired,
|
|
37
|
+
screenReaderLabel: _propTypes.default.func.isRequired,
|
|
38
|
+
label: _propTypes.default.func,
|
|
39
|
+
disabled: _propTypes.default.bool,
|
|
40
|
+
inputRef: _propTypes.default.func
|
|
41
|
+
};
|
|
31
42
|
const allowedProps = exports.allowedProps = ['numberOfPages', 'currentPageIndex', 'onChange', 'screenReaderLabel', 'label', 'disabled', 'inputRef'];
|
package/lib/Pagination/index.js
CHANGED
|
@@ -14,6 +14,7 @@ Object.defineProperty(exports, "PaginationButton", {
|
|
|
14
14
|
exports.default = void 0;
|
|
15
15
|
var _react = require("react");
|
|
16
16
|
var _View = require("@instructure/ui-view/lib/View");
|
|
17
|
+
var _testable = require("@instructure/ui-testable/lib/testable.js");
|
|
17
18
|
var _omitProps = require("@instructure/ui-react-utils/lib/omitProps.js");
|
|
18
19
|
var _withDeterministicId = require("@instructure/ui-react-utils/lib/DeterministicIdContext/withDeterministicId.js");
|
|
19
20
|
var _hasVisibleChildren = require("@instructure/ui-a11y-utils/lib/hasVisibleChildren.js");
|
|
@@ -27,7 +28,7 @@ var _styles = _interopRequireDefault(require("./styles"));
|
|
|
27
28
|
var _theme = _interopRequireDefault(require("./theme"));
|
|
28
29
|
var _props = require("./props");
|
|
29
30
|
var _jsxRuntime = require("@emotion/react/jsx-runtime");
|
|
30
|
-
var _dec, _dec2, _class, _Pagination;
|
|
31
|
+
var _dec, _dec2, _dec3, _class, _Pagination;
|
|
31
32
|
/*
|
|
32
33
|
* The MIT License (MIT)
|
|
33
34
|
*
|
|
@@ -69,7 +70,7 @@ function propsHaveCompactView(props) {
|
|
|
69
70
|
category: components
|
|
70
71
|
---
|
|
71
72
|
**/
|
|
72
|
-
let Pagination = exports.Pagination = (_dec = (0, _withDeterministicId.withDeterministicId)(), _dec2 = (0, _emotion.withStyle)(_styles.default, _theme.default), _dec(_class = _dec2(_class = (_Pagination = class Pagination extends _react.Component {
|
|
73
|
+
let Pagination = exports.Pagination = (_dec = (0, _withDeterministicId.withDeterministicId)(), _dec2 = (0, _emotion.withStyle)(_styles.default, _theme.default), _dec3 = (0, _testable.testable)(), _dec(_class = _dec2(_class = _dec3(_class = (_Pagination = class Pagination extends _react.Component {
|
|
73
74
|
constructor(props) {
|
|
74
75
|
super(props);
|
|
75
76
|
this._labelId = void 0;
|
|
@@ -119,11 +120,7 @@ let Pagination = exports.Pagination = (_dec = (0, _withDeterministicId.withDeter
|
|
|
119
120
|
for (let i = from; i <= to; i++) {
|
|
120
121
|
var _this$props$renderPag, _this$props3;
|
|
121
122
|
pages.push((0, _jsxRuntime.jsx)(Pagination.Page, {
|
|
122
|
-
ref: e =>
|
|
123
|
-
if (i === currentPage) {
|
|
124
|
-
this.currentPageRef = e;
|
|
125
|
-
}
|
|
126
|
-
},
|
|
123
|
+
ref: e => i === currentPage ? this.currentPageRef = e : null,
|
|
127
124
|
onClick: () => this.handleNavigation(i, currentPage),
|
|
128
125
|
onMouseEnter: () => this.handleOnMouseEnter(i),
|
|
129
126
|
current: i === currentPage,
|
|
@@ -458,7 +455,6 @@ let Pagination = exports.Pagination = (_dec = (0, _withDeterministicId.withDeter
|
|
|
458
455
|
margin: this.props.margin,
|
|
459
456
|
css: (_this$props$styles4 = this.props.styles) === null || _this$props$styles4 === void 0 ? void 0 : _this$props$styles4.pagination,
|
|
460
457
|
"aria-labelledby": this.props.label ? this._labelId : void 0,
|
|
461
|
-
"data-cid": "Pagination",
|
|
462
458
|
children: [this.props.label && this.renderLabel(), (0, _jsxRuntime.jsxs)(_View.View, {
|
|
463
459
|
display: "inline-block",
|
|
464
460
|
css: (_this$props$styles5 = this.props.styles) === null || _this$props$styles5 === void 0 ? void 0 : _this$props$styles5.pages,
|
|
@@ -466,7 +462,7 @@ let Pagination = exports.Pagination = (_dec = (0, _withDeterministicId.withDeter
|
|
|
466
462
|
})]
|
|
467
463
|
});
|
|
468
464
|
}
|
|
469
|
-
}, _Pagination.displayName = "Pagination", _Pagination.componentId = 'Pagination', _Pagination.allowedProps = _props.allowedProps, _Pagination.defaultProps = {
|
|
465
|
+
}, _Pagination.displayName = "Pagination", _Pagination.componentId = 'Pagination', _Pagination.propTypes = _props.propTypes, _Pagination.allowedProps = _props.allowedProps, _Pagination.defaultProps = {
|
|
470
466
|
disabled: false,
|
|
471
467
|
withFirstAndLastButton: false,
|
|
472
468
|
showDisabledButtons: false,
|
|
@@ -482,5 +478,5 @@ let Pagination = exports.Pagination = (_dec = (0, _withDeterministicId.withDeter
|
|
|
482
478
|
ellipsis: '…',
|
|
483
479
|
renderPageIndicator: page => page,
|
|
484
480
|
margin: 'space8'
|
|
485
|
-
}, _Pagination.Page = _PaginationButton.PaginationButton, _Pagination.Navigation = _PaginationArrowButton.PaginationArrowButton, _Pagination)) || _class) || _class);
|
|
481
|
+
}, _Pagination.Page = _PaginationButton.PaginationButton, _Pagination.Navigation = _PaginationArrowButton.PaginationArrowButton, _Pagination)) || _class) || _class) || _class);
|
|
486
482
|
var _default = exports.default = Pagination;
|
package/lib/Pagination/props.js
CHANGED
|
@@ -1,9 +1,13 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
|
|
3
|
+
var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefault").default;
|
|
3
4
|
Object.defineProperty(exports, "__esModule", {
|
|
4
5
|
value: true
|
|
5
6
|
});
|
|
6
|
-
exports.allowedProps = void 0;
|
|
7
|
+
exports.propTypes = exports.allowedProps = void 0;
|
|
8
|
+
var _propTypes = _interopRequireDefault(require("prop-types"));
|
|
9
|
+
var _Children = require("@instructure/ui-prop-types/lib/Children.js");
|
|
10
|
+
var _PaginationButton = require("./PaginationButton");
|
|
7
11
|
/*
|
|
8
12
|
* The MIT License (MIT)
|
|
9
13
|
*
|
|
@@ -28,4 +32,32 @@ exports.allowedProps = void 0;
|
|
|
28
32
|
* SOFTWARE.
|
|
29
33
|
*/
|
|
30
34
|
|
|
35
|
+
const propTypes = exports.propTypes = {
|
|
36
|
+
children: _Children.Children.oneOf([_PaginationButton.PaginationButton]),
|
|
37
|
+
disabled: _propTypes.default.bool,
|
|
38
|
+
withFirstAndLastButton: _propTypes.default.bool,
|
|
39
|
+
showDisabledButtons: _propTypes.default.bool,
|
|
40
|
+
label: _propTypes.default.node,
|
|
41
|
+
labelNext: _propTypes.default.string,
|
|
42
|
+
labelPrev: _propTypes.default.string,
|
|
43
|
+
labelFirst: _propTypes.default.string,
|
|
44
|
+
labelLast: _propTypes.default.string,
|
|
45
|
+
labelNumberInput: _propTypes.default.func,
|
|
46
|
+
screenReaderLabelNumberInput: _propTypes.default.func,
|
|
47
|
+
screenReaderLabelPageButton: _propTypes.default.func,
|
|
48
|
+
variant: _propTypes.default.oneOf(['full', 'compact', 'input']),
|
|
49
|
+
margin: _propTypes.default.string,
|
|
50
|
+
as: _propTypes.default.elementType,
|
|
51
|
+
elementRef: _propTypes.default.func,
|
|
52
|
+
inputRef: _propTypes.default.func,
|
|
53
|
+
shouldHandleFocus: _propTypes.default.bool,
|
|
54
|
+
totalPageNumber: _propTypes.default.number,
|
|
55
|
+
currentPage: _propTypes.default.number,
|
|
56
|
+
siblingCount: _propTypes.default.number,
|
|
57
|
+
boundaryCount: _propTypes.default.number,
|
|
58
|
+
onPageChange: _propTypes.default.func,
|
|
59
|
+
onMouseEnter: _propTypes.default.func,
|
|
60
|
+
renderPageIndicator: _propTypes.default.func,
|
|
61
|
+
ellipsis: _propTypes.default.node
|
|
62
|
+
};
|
|
31
63
|
const allowedProps = exports.allowedProps = ['children', 'disabled', 'withFirstAndLastButton', 'showDisabledButtons', 'label', 'labelNext', 'labelPrev', 'labelFirst', 'labelLast', 'labelNumberInput', 'screenReaderLabelNumberInput', 'screenReaderLabelPageButton', 'variant', 'margin', 'as', 'elementRef', 'inputRef', 'shouldHandleFocus', 'totalPageNumber', 'currentPage', 'onPageChange', 'siblingCount', 'boundaryCount', 'renderPageIndicator', 'ellipsis', 'onMouseEnter'];
|