@instructure/ui-pagination 8.12.1-snapshot.7 → 8.13.0
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 +4 -0
- package/es/Pagination/PaginationArrowButton/PaginationArrowButtonLocator.js +8 -2
- package/es/Pagination/PaginationArrowButton/index.js +2 -2
- package/es/Pagination/PaginationButton/index.js +2 -2
- package/es/Pagination/PaginationLocator.js +9 -3
- package/es/Pagination/index.js +2 -2
- package/lib/Pagination/PaginationArrowButton/PaginationArrowButtonLocator.js +8 -2
- package/lib/Pagination/PaginationArrowButton/index.js +3 -3
- package/lib/Pagination/PaginationArrowButton/props.js +1 -1
- package/lib/Pagination/PaginationButton/index.js +3 -3
- package/lib/Pagination/PaginationButton/props.js +1 -1
- package/lib/Pagination/PaginationLocator.js +9 -3
- package/lib/Pagination/index.js +4 -3
- package/lib/Pagination/props.js +1 -1
- package/package.json +21 -22
- package/LICENSE.md +0 -27
package/CHANGELOG.md
CHANGED
|
@@ -3,6 +3,10 @@
|
|
|
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
|
+
# [8.13.0](https://github.com/instructure/instructure-ui/compare/v8.12.0...v8.13.0) (2021-12-01)
|
|
7
|
+
|
|
8
|
+
**Note:** Version bump only for package @instructure/ui-pagination
|
|
9
|
+
|
|
6
10
|
# [8.12.0](https://github.com/instructure/instructure-ui/compare/v8.11.1...v8.12.0) (2021-11-17)
|
|
7
11
|
|
|
8
12
|
**Note:** Version bump only for package @instructure/ui-pagination
|
|
@@ -27,8 +27,14 @@ import { find } from '@instructure/ui-test-queries'; // eslint-disable-next-line
|
|
|
27
27
|
import { TooltipLocator } from '@instructure/ui-tooltip/es/Tooltip/TooltipLocator';
|
|
28
28
|
import { PaginationArrowButton } from './index';
|
|
29
29
|
export const PaginationArrowButtonLocator = locator(PaginationArrowButton.selector, {
|
|
30
|
-
findTooltipContent: (
|
|
31
|
-
|
|
30
|
+
findTooltipContent: function () {
|
|
31
|
+
return TooltipLocator.findContent(...arguments);
|
|
32
|
+
},
|
|
33
|
+
click: async function (element) {
|
|
34
|
+
for (var _len = arguments.length, args = new Array(_len > 1 ? _len - 1 : 0), _key = 1; _key < _len; _key++) {
|
|
35
|
+
args[_key - 1] = arguments[_key];
|
|
36
|
+
}
|
|
37
|
+
|
|
32
38
|
return (await find(element, 'a,button,[role="button"]')).click(...args);
|
|
33
39
|
}
|
|
34
40
|
});
|
|
@@ -41,8 +41,8 @@ id: Pagination.Navigation
|
|
|
41
41
|
**/
|
|
42
42
|
|
|
43
43
|
let PaginationArrowButton = (_dec = testable(), _dec(_class = (_temp = _class2 = class PaginationArrowButton extends Component {
|
|
44
|
-
constructor(
|
|
45
|
-
super(...
|
|
44
|
+
constructor() {
|
|
45
|
+
super(...arguments);
|
|
46
46
|
this.ref = null;
|
|
47
47
|
|
|
48
48
|
this.handleRef = el => {
|
|
@@ -36,8 +36,8 @@ id: Pagination.Page
|
|
|
36
36
|
---
|
|
37
37
|
**/
|
|
38
38
|
let PaginationButton = (_dec = testable(), _dec(_class = (_temp = _class2 = class PaginationButton extends Component {
|
|
39
|
-
constructor(
|
|
40
|
-
super(...
|
|
39
|
+
constructor() {
|
|
40
|
+
super(...arguments);
|
|
41
41
|
this.ref = null;
|
|
42
42
|
|
|
43
43
|
this.handleRef = el => {
|
|
@@ -26,7 +26,13 @@ import { PaginationArrowButtonLocator } from './PaginationArrowButton/Pagination
|
|
|
26
26
|
import { Pagination } from './index';
|
|
27
27
|
const PaginationButtonLocator = locator(Pagination.Page.selector);
|
|
28
28
|
export const PaginationLocator = locator(Pagination.selector, {
|
|
29
|
-
findAllPageButtons: async (
|
|
30
|
-
|
|
31
|
-
|
|
29
|
+
findAllPageButtons: async function () {
|
|
30
|
+
return PaginationButtonLocator.findAll(...arguments);
|
|
31
|
+
},
|
|
32
|
+
findPageButton: async function () {
|
|
33
|
+
return PaginationButtonLocator.find(...arguments);
|
|
34
|
+
},
|
|
35
|
+
findArrowButton: async function () {
|
|
36
|
+
return PaginationArrowButtonLocator.find(...arguments);
|
|
37
|
+
}
|
|
32
38
|
});
|
package/es/Pagination/index.js
CHANGED
|
@@ -62,8 +62,8 @@ category: components
|
|
|
62
62
|
|
|
63
63
|
|
|
64
64
|
let Pagination = (_dec = withStyle(generateStyle, null), _dec2 = testable(), _dec(_class = _dec2(_class = (_temp = _class2 = class Pagination extends Component {
|
|
65
|
-
constructor(
|
|
66
|
-
super(...
|
|
65
|
+
constructor() {
|
|
66
|
+
super(...arguments);
|
|
67
67
|
this.ref = null;
|
|
68
68
|
|
|
69
69
|
this.handleElementRef = el => {
|
|
@@ -38,8 +38,14 @@ var _index = require("./index");
|
|
|
38
38
|
*/
|
|
39
39
|
// eslint-disable-next-line no-restricted-imports
|
|
40
40
|
const PaginationArrowButtonLocator = (0, _locator.locator)(_index.PaginationArrowButton.selector, {
|
|
41
|
-
findTooltipContent: (
|
|
42
|
-
|
|
41
|
+
findTooltipContent: function () {
|
|
42
|
+
return _TooltipLocator.TooltipLocator.findContent(...arguments);
|
|
43
|
+
},
|
|
44
|
+
click: async function (element) {
|
|
45
|
+
for (var _len = arguments.length, args = new Array(_len > 1 ? _len - 1 : 0), _key = 1; _key < _len; _key++) {
|
|
46
|
+
args[_key - 1] = arguments[_key];
|
|
47
|
+
}
|
|
48
|
+
|
|
43
49
|
return (await (0, _uiTestQueries.find)(element, 'a,button,[role="button"]')).click(...args);
|
|
44
50
|
}
|
|
45
51
|
});
|
|
@@ -7,7 +7,7 @@ var _interopRequireWildcard = require("@babel/runtime/helpers/interopRequireWild
|
|
|
7
7
|
Object.defineProperty(exports, "__esModule", {
|
|
8
8
|
value: true
|
|
9
9
|
});
|
|
10
|
-
exports.
|
|
10
|
+
exports.default = exports.PaginationArrowButton = void 0;
|
|
11
11
|
|
|
12
12
|
var _objectWithoutProperties2 = _interopRequireDefault(require("@babel/runtime/helpers/objectWithoutProperties"));
|
|
13
13
|
|
|
@@ -38,8 +38,8 @@ id: Pagination.Navigation
|
|
|
38
38
|
---
|
|
39
39
|
**/
|
|
40
40
|
let PaginationArrowButton = (_dec = (0, _testable.testable)(), _dec(_class = (_temp = _class2 = class PaginationArrowButton extends _react.Component {
|
|
41
|
-
constructor(
|
|
42
|
-
super(...
|
|
41
|
+
constructor() {
|
|
42
|
+
super(...arguments);
|
|
43
43
|
this.ref = null;
|
|
44
44
|
|
|
45
45
|
this.handleRef = el => {
|
|
@@ -5,7 +5,7 @@ var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefau
|
|
|
5
5
|
Object.defineProperty(exports, "__esModule", {
|
|
6
6
|
value: true
|
|
7
7
|
});
|
|
8
|
-
exports.
|
|
8
|
+
exports.propTypes = exports.allowedProps = void 0;
|
|
9
9
|
|
|
10
10
|
var _propTypes = _interopRequireDefault(require("prop-types"));
|
|
11
11
|
|
|
@@ -5,7 +5,7 @@ var _interopRequireWildcard = require("@babel/runtime/helpers/interopRequireWild
|
|
|
5
5
|
Object.defineProperty(exports, "__esModule", {
|
|
6
6
|
value: true
|
|
7
7
|
});
|
|
8
|
-
exports.
|
|
8
|
+
exports.default = exports.PaginationButton = void 0;
|
|
9
9
|
|
|
10
10
|
var _react = _interopRequireWildcard(require("react"));
|
|
11
11
|
|
|
@@ -26,8 +26,8 @@ id: Pagination.Page
|
|
|
26
26
|
---
|
|
27
27
|
**/
|
|
28
28
|
let PaginationButton = (_dec = (0, _testable.testable)(), _dec(_class = (_temp = _class2 = class PaginationButton extends _react.Component {
|
|
29
|
-
constructor(
|
|
30
|
-
super(...
|
|
29
|
+
constructor() {
|
|
30
|
+
super(...arguments);
|
|
31
31
|
this.ref = null;
|
|
32
32
|
|
|
33
33
|
this.handleRef = el => {
|
|
@@ -5,7 +5,7 @@ var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefau
|
|
|
5
5
|
Object.defineProperty(exports, "__esModule", {
|
|
6
6
|
value: true
|
|
7
7
|
});
|
|
8
|
-
exports.
|
|
8
|
+
exports.propTypes = exports.allowedProps = void 0;
|
|
9
9
|
|
|
10
10
|
var _propTypes = _interopRequireDefault(require("prop-types"));
|
|
11
11
|
|
|
@@ -36,8 +36,14 @@ var _index = require("./index");
|
|
|
36
36
|
*/
|
|
37
37
|
const PaginationButtonLocator = (0, _locator.locator)(_index.Pagination.Page.selector);
|
|
38
38
|
const PaginationLocator = (0, _locator.locator)(_index.Pagination.selector, {
|
|
39
|
-
findAllPageButtons: async (
|
|
40
|
-
|
|
41
|
-
|
|
39
|
+
findAllPageButtons: async function () {
|
|
40
|
+
return PaginationButtonLocator.findAll(...arguments);
|
|
41
|
+
},
|
|
42
|
+
findPageButton: async function () {
|
|
43
|
+
return PaginationButtonLocator.find(...arguments);
|
|
44
|
+
},
|
|
45
|
+
findArrowButton: async function () {
|
|
46
|
+
return _PaginationArrowButtonLocator.PaginationArrowButtonLocator.find(...arguments);
|
|
47
|
+
}
|
|
42
48
|
});
|
|
43
49
|
exports.PaginationLocator = PaginationLocator;
|
package/lib/Pagination/index.js
CHANGED
|
@@ -7,13 +7,14 @@ var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefau
|
|
|
7
7
|
Object.defineProperty(exports, "__esModule", {
|
|
8
8
|
value: true
|
|
9
9
|
});
|
|
10
|
+
exports.Pagination = void 0;
|
|
10
11
|
Object.defineProperty(exports, "PaginationButton", {
|
|
11
12
|
enumerable: true,
|
|
12
13
|
get: function () {
|
|
13
14
|
return _PaginationButton.PaginationButton;
|
|
14
15
|
}
|
|
15
16
|
});
|
|
16
|
-
exports.
|
|
17
|
+
exports.default = void 0;
|
|
17
18
|
|
|
18
19
|
var _react = _interopRequireWildcard(require("react"));
|
|
19
20
|
|
|
@@ -67,8 +68,8 @@ category: components
|
|
|
67
68
|
|
|
68
69
|
|
|
69
70
|
let Pagination = (_dec = (0, _emotion.withStyle)(_styles.default, null), _dec2 = (0, _testable.testable)(), _dec(_class = _dec2(_class = (_temp = _class2 = class Pagination extends _react.Component {
|
|
70
|
-
constructor(
|
|
71
|
-
super(...
|
|
71
|
+
constructor() {
|
|
72
|
+
super(...arguments);
|
|
72
73
|
this.ref = null;
|
|
73
74
|
|
|
74
75
|
this.handleElementRef = el => {
|
package/lib/Pagination/props.js
CHANGED
|
@@ -5,7 +5,7 @@ var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefau
|
|
|
5
5
|
Object.defineProperty(exports, "__esModule", {
|
|
6
6
|
value: true
|
|
7
7
|
});
|
|
8
|
-
exports.
|
|
8
|
+
exports.propTypes = exports.allowedProps = void 0;
|
|
9
9
|
|
|
10
10
|
var _propTypes = _interopRequireDefault(require("prop-types"));
|
|
11
11
|
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@instructure/ui-pagination",
|
|
3
|
-
"version": "8.
|
|
3
|
+
"version": "8.13.0",
|
|
4
4
|
"description": "A UI component library made by Instructure Inc.",
|
|
5
5
|
"author": "Instructure, Inc. Engineering and Product Design",
|
|
6
6
|
"type": "commonjs",
|
|
@@ -24,28 +24,28 @@
|
|
|
24
24
|
},
|
|
25
25
|
"license": "MIT",
|
|
26
26
|
"devDependencies": {
|
|
27
|
-
"@instructure/ui-babel-preset": "8.
|
|
28
|
-
"@instructure/ui-test-locator": "8.
|
|
29
|
-
"@instructure/ui-test-queries": "8.
|
|
30
|
-
"@instructure/ui-test-utils": "8.
|
|
27
|
+
"@instructure/ui-babel-preset": "8.13.0",
|
|
28
|
+
"@instructure/ui-test-locator": "8.13.0",
|
|
29
|
+
"@instructure/ui-test-queries": "8.13.0",
|
|
30
|
+
"@instructure/ui-test-utils": "8.13.0"
|
|
31
31
|
},
|
|
32
32
|
"dependencies": {
|
|
33
33
|
"@babel/runtime": "^7.13.10",
|
|
34
|
-
"@instructure/emotion": "8.
|
|
35
|
-
"@instructure/shared-types": "8.
|
|
36
|
-
"@instructure/ui-a11y-content": "8.
|
|
37
|
-
"@instructure/ui-a11y-utils": "8.
|
|
38
|
-
"@instructure/ui-buttons": "8.
|
|
39
|
-
"@instructure/ui-dom-utils": "8.
|
|
40
|
-
"@instructure/ui-icons": "8.
|
|
41
|
-
"@instructure/ui-portal": "8.
|
|
42
|
-
"@instructure/ui-prop-types": "8.
|
|
43
|
-
"@instructure/ui-react-utils": "8.
|
|
44
|
-
"@instructure/ui-testable": "8.
|
|
45
|
-
"@instructure/ui-tooltip": "8.
|
|
46
|
-
"@instructure/ui-utils": "8.
|
|
47
|
-
"@instructure/ui-view": "8.
|
|
48
|
-
"@instructure/uid": "8.
|
|
34
|
+
"@instructure/emotion": "8.13.0",
|
|
35
|
+
"@instructure/shared-types": "8.13.0",
|
|
36
|
+
"@instructure/ui-a11y-content": "8.13.0",
|
|
37
|
+
"@instructure/ui-a11y-utils": "8.13.0",
|
|
38
|
+
"@instructure/ui-buttons": "8.13.0",
|
|
39
|
+
"@instructure/ui-dom-utils": "8.13.0",
|
|
40
|
+
"@instructure/ui-icons": "8.13.0",
|
|
41
|
+
"@instructure/ui-portal": "8.13.0",
|
|
42
|
+
"@instructure/ui-prop-types": "8.13.0",
|
|
43
|
+
"@instructure/ui-react-utils": "8.13.0",
|
|
44
|
+
"@instructure/ui-testable": "8.13.0",
|
|
45
|
+
"@instructure/ui-tooltip": "8.13.0",
|
|
46
|
+
"@instructure/ui-utils": "8.13.0",
|
|
47
|
+
"@instructure/ui-view": "8.13.0",
|
|
48
|
+
"@instructure/uid": "8.13.0",
|
|
49
49
|
"prop-types": "^15"
|
|
50
50
|
},
|
|
51
51
|
"peerDependencies": {
|
|
@@ -54,6 +54,5 @@
|
|
|
54
54
|
"publishConfig": {
|
|
55
55
|
"access": "public"
|
|
56
56
|
},
|
|
57
|
-
"sideEffects": false
|
|
58
|
-
"gitHead": "1e7ac821932a91fe9ef761c96f747c7ea1f3925a"
|
|
57
|
+
"sideEffects": false
|
|
59
58
|
}
|
package/LICENSE.md
DELETED
|
@@ -1,27 +0,0 @@
|
|
|
1
|
-
---
|
|
2
|
-
title: The MIT License (MIT)
|
|
3
|
-
category: Getting Started
|
|
4
|
-
order: 9
|
|
5
|
-
---
|
|
6
|
-
|
|
7
|
-
# The MIT License (MIT)
|
|
8
|
-
|
|
9
|
-
Copyright (c) 2015 Instructure, Inc.
|
|
10
|
-
|
|
11
|
-
**Permission is hereby granted, free of charge, to any person obtaining a copy
|
|
12
|
-
of this software and associated documentation files (the "Software"), to deal
|
|
13
|
-
in the Software without restriction, including without limitation the rights
|
|
14
|
-
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
|
15
|
-
copies of the Software, and to permit persons to whom the Software is
|
|
16
|
-
furnished to do so, subject to the following conditions.**
|
|
17
|
-
|
|
18
|
-
The above copyright notice and this permission notice shall be included in all
|
|
19
|
-
copies or substantial portions of the Software.
|
|
20
|
-
|
|
21
|
-
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
|
22
|
-
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
|
23
|
-
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
|
24
|
-
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
|
25
|
-
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
|
26
|
-
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
|
|
27
|
-
SOFTWARE.
|