@instructure/ui-pagination 8.12.1-snapshot.43 → 8.12.1-snapshot.47

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.
@@ -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: (...args) => TooltipLocator.findContent(...args),
31
- click: async (element, ...args) => {
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(...args) {
45
- super(...args);
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(...args) {
40
- super(...args);
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 (...args) => PaginationButtonLocator.findAll(...args),
30
- findPageButton: async (...args) => PaginationButtonLocator.find(...args),
31
- findArrowButton: async (...args) => PaginationArrowButtonLocator.find(...args)
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
  });
@@ -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(...args) {
66
- super(...args);
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: (...args) => _TooltipLocator.TooltipLocator.findContent(...args),
42
- click: async (element, ...args) => {
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.PaginationArrowButton = exports.default = void 0;
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(...args) {
42
- super(...args);
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.allowedProps = exports.propTypes = void 0;
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.PaginationButton = exports.default = void 0;
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(...args) {
30
- super(...args);
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.allowedProps = exports.propTypes = void 0;
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 (...args) => PaginationButtonLocator.findAll(...args),
40
- findPageButton: async (...args) => PaginationButtonLocator.find(...args),
41
- findArrowButton: async (...args) => _PaginationArrowButtonLocator.PaginationArrowButtonLocator.find(...args)
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;
@@ -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.Pagination = exports.default = void 0;
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(...args) {
71
- super(...args);
71
+ constructor() {
72
+ super(...arguments);
72
73
  this.ref = null;
73
74
 
74
75
  this.handleElementRef = 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.allowedProps = exports.propTypes = void 0;
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.43+3eb834049",
3
+ "version": "8.12.1-snapshot.47+70bc15c4e",
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.43+3eb834049",
28
- "@instructure/ui-test-locator": "8.12.1-snapshot.43+3eb834049",
29
- "@instructure/ui-test-queries": "8.12.1-snapshot.43+3eb834049",
30
- "@instructure/ui-test-utils": "8.12.1-snapshot.43+3eb834049"
27
+ "@instructure/ui-babel-preset": "8.12.1-snapshot.47+70bc15c4e",
28
+ "@instructure/ui-test-locator": "8.12.1-snapshot.47+70bc15c4e",
29
+ "@instructure/ui-test-queries": "8.12.1-snapshot.47+70bc15c4e",
30
+ "@instructure/ui-test-utils": "8.12.1-snapshot.47+70bc15c4e"
31
31
  },
32
32
  "dependencies": {
33
33
  "@babel/runtime": "^7.13.10",
34
- "@instructure/emotion": "8.12.1-snapshot.43+3eb834049",
35
- "@instructure/shared-types": "8.12.1-snapshot.43+3eb834049",
36
- "@instructure/ui-a11y-content": "8.12.1-snapshot.43+3eb834049",
37
- "@instructure/ui-a11y-utils": "8.12.1-snapshot.43+3eb834049",
38
- "@instructure/ui-buttons": "8.12.1-snapshot.43+3eb834049",
39
- "@instructure/ui-dom-utils": "8.12.1-snapshot.43+3eb834049",
40
- "@instructure/ui-icons": "8.12.1-snapshot.43+3eb834049",
41
- "@instructure/ui-portal": "8.12.1-snapshot.43+3eb834049",
42
- "@instructure/ui-prop-types": "8.12.1-snapshot.43+3eb834049",
43
- "@instructure/ui-react-utils": "8.12.1-snapshot.43+3eb834049",
44
- "@instructure/ui-testable": "8.12.1-snapshot.43+3eb834049",
45
- "@instructure/ui-tooltip": "8.12.1-snapshot.43+3eb834049",
46
- "@instructure/ui-utils": "8.12.1-snapshot.43+3eb834049",
47
- "@instructure/ui-view": "8.12.1-snapshot.43+3eb834049",
48
- "@instructure/uid": "8.12.1-snapshot.43+3eb834049",
34
+ "@instructure/emotion": "8.12.1-snapshot.47+70bc15c4e",
35
+ "@instructure/shared-types": "8.12.1-snapshot.47+70bc15c4e",
36
+ "@instructure/ui-a11y-content": "8.12.1-snapshot.47+70bc15c4e",
37
+ "@instructure/ui-a11y-utils": "8.12.1-snapshot.47+70bc15c4e",
38
+ "@instructure/ui-buttons": "8.12.1-snapshot.47+70bc15c4e",
39
+ "@instructure/ui-dom-utils": "8.12.1-snapshot.47+70bc15c4e",
40
+ "@instructure/ui-icons": "8.12.1-snapshot.47+70bc15c4e",
41
+ "@instructure/ui-portal": "8.12.1-snapshot.47+70bc15c4e",
42
+ "@instructure/ui-prop-types": "8.12.1-snapshot.47+70bc15c4e",
43
+ "@instructure/ui-react-utils": "8.12.1-snapshot.47+70bc15c4e",
44
+ "@instructure/ui-testable": "8.12.1-snapshot.47+70bc15c4e",
45
+ "@instructure/ui-tooltip": "8.12.1-snapshot.47+70bc15c4e",
46
+ "@instructure/ui-utils": "8.12.1-snapshot.47+70bc15c4e",
47
+ "@instructure/ui-view": "8.12.1-snapshot.47+70bc15c4e",
48
+ "@instructure/uid": "8.12.1-snapshot.47+70bc15c4e",
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": "3eb834049428e487ae55ea3ef61fec3eb973156d"
58
+ "gitHead": "70bc15c4e8d89589a1372954f7a230ddde5ef71b"
59
59
  }