@instructure/ui-pagination 8.12.1-snapshot.45 → 8.12.1-snapshot.51
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/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 -21
|
@@ -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.12.1-snapshot.
|
|
3
|
+
"version": "8.12.1-snapshot.51+4d3697334",
|
|
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.12.1-snapshot.
|
|
28
|
-
"@instructure/ui-test-locator": "8.12.1-snapshot.
|
|
29
|
-
"@instructure/ui-test-queries": "8.12.1-snapshot.
|
|
30
|
-
"@instructure/ui-test-utils": "8.12.1-snapshot.
|
|
27
|
+
"@instructure/ui-babel-preset": "8.12.1-snapshot.51+4d3697334",
|
|
28
|
+
"@instructure/ui-test-locator": "8.12.1-snapshot.51+4d3697334",
|
|
29
|
+
"@instructure/ui-test-queries": "8.12.1-snapshot.51+4d3697334",
|
|
30
|
+
"@instructure/ui-test-utils": "8.12.1-snapshot.51+4d3697334"
|
|
31
31
|
},
|
|
32
32
|
"dependencies": {
|
|
33
33
|
"@babel/runtime": "^7.13.10",
|
|
34
|
-
"@instructure/emotion": "8.12.1-snapshot.
|
|
35
|
-
"@instructure/shared-types": "8.12.1-snapshot.
|
|
36
|
-
"@instructure/ui-a11y-content": "8.12.1-snapshot.
|
|
37
|
-
"@instructure/ui-a11y-utils": "8.12.1-snapshot.
|
|
38
|
-
"@instructure/ui-buttons": "8.12.1-snapshot.
|
|
39
|
-
"@instructure/ui-dom-utils": "8.12.1-snapshot.
|
|
40
|
-
"@instructure/ui-icons": "8.12.1-snapshot.
|
|
41
|
-
"@instructure/ui-portal": "8.12.1-snapshot.
|
|
42
|
-
"@instructure/ui-prop-types": "8.12.1-snapshot.
|
|
43
|
-
"@instructure/ui-react-utils": "8.12.1-snapshot.
|
|
44
|
-
"@instructure/ui-testable": "8.12.1-snapshot.
|
|
45
|
-
"@instructure/ui-tooltip": "8.12.1-snapshot.
|
|
46
|
-
"@instructure/ui-utils": "8.12.1-snapshot.
|
|
47
|
-
"@instructure/ui-view": "8.12.1-snapshot.
|
|
48
|
-
"@instructure/uid": "8.12.1-snapshot.
|
|
34
|
+
"@instructure/emotion": "8.12.1-snapshot.51+4d3697334",
|
|
35
|
+
"@instructure/shared-types": "8.12.1-snapshot.51+4d3697334",
|
|
36
|
+
"@instructure/ui-a11y-content": "8.12.1-snapshot.51+4d3697334",
|
|
37
|
+
"@instructure/ui-a11y-utils": "8.12.1-snapshot.51+4d3697334",
|
|
38
|
+
"@instructure/ui-buttons": "8.12.1-snapshot.51+4d3697334",
|
|
39
|
+
"@instructure/ui-dom-utils": "8.12.1-snapshot.51+4d3697334",
|
|
40
|
+
"@instructure/ui-icons": "8.12.1-snapshot.51+4d3697334",
|
|
41
|
+
"@instructure/ui-portal": "8.12.1-snapshot.51+4d3697334",
|
|
42
|
+
"@instructure/ui-prop-types": "8.12.1-snapshot.51+4d3697334",
|
|
43
|
+
"@instructure/ui-react-utils": "8.12.1-snapshot.51+4d3697334",
|
|
44
|
+
"@instructure/ui-testable": "8.12.1-snapshot.51+4d3697334",
|
|
45
|
+
"@instructure/ui-tooltip": "8.12.1-snapshot.51+4d3697334",
|
|
46
|
+
"@instructure/ui-utils": "8.12.1-snapshot.51+4d3697334",
|
|
47
|
+
"@instructure/ui-view": "8.12.1-snapshot.51+4d3697334",
|
|
48
|
+
"@instructure/uid": "8.12.1-snapshot.51+4d3697334",
|
|
49
49
|
"prop-types": "^15"
|
|
50
50
|
},
|
|
51
51
|
"peerDependencies": {
|
|
@@ -55,5 +55,5 @@
|
|
|
55
55
|
"access": "public"
|
|
56
56
|
},
|
|
57
57
|
"sideEffects": false,
|
|
58
|
-
"gitHead": "
|
|
58
|
+
"gitHead": "4d369733414715a70bae0628378e8d82214eab3e"
|
|
59
59
|
}
|