@instructure/ui-pagination 8.23.0 → 8.23.1-snapshot.11
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/LICENSE.md +27 -0
- package/es/Pagination/PaginationArrowButton/index.js +3 -3
- package/es/Pagination/PaginationButton/index.js +3 -3
- package/es/Pagination/PaginationPageInput/index.js +3 -3
- package/es/Pagination/index.js +3 -3
- package/lib/Pagination/PaginationArrowButton/index.js +3 -3
- package/lib/Pagination/PaginationButton/index.js +3 -3
- package/lib/Pagination/PaginationPageInput/index.js +3 -3
- package/lib/Pagination/index.js +3 -3
- package/package.json +23 -22
- package/tsconfig.build.tsbuildinfo +1 -1
package/LICENSE.md
ADDED
|
@@ -0,0 +1,27 @@
|
|
|
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.
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import _objectWithoutProperties from "@babel/runtime/helpers/esm/objectWithoutProperties";
|
|
2
2
|
const _excluded = ["label", "direction", "buttonRef"];
|
|
3
3
|
|
|
4
|
-
var _dec, _class, _class2
|
|
4
|
+
var _dec, _class, _class2;
|
|
5
5
|
|
|
6
6
|
/*
|
|
7
7
|
* The MIT License (MIT)
|
|
@@ -41,7 +41,7 @@ id: Pagination.Navigation
|
|
|
41
41
|
@tsProps
|
|
42
42
|
**/
|
|
43
43
|
|
|
44
|
-
let PaginationArrowButton = (_dec = testable(), _dec(_class = (
|
|
44
|
+
let PaginationArrowButton = (_dec = testable(), _dec(_class = (_class2 = class PaginationArrowButton extends Component {
|
|
45
45
|
constructor() {
|
|
46
46
|
super(...arguments);
|
|
47
47
|
this.ref = null;
|
|
@@ -105,6 +105,6 @@ let PaginationArrowButton = (_dec = testable(), _dec(_class = (_temp = _class2 =
|
|
|
105
105
|
}), this.Icon));
|
|
106
106
|
}
|
|
107
107
|
|
|
108
|
-
}, _class2.displayName = "PaginationArrowButton", _class2.componentId = 'Pagination.Navigation', _class2.allowedProps = allowedProps, _class2.propTypes = propTypes, _class2.defaultProps = {},
|
|
108
|
+
}, _class2.displayName = "PaginationArrowButton", _class2.componentId = 'Pagination.Navigation', _class2.allowedProps = allowedProps, _class2.propTypes = propTypes, _class2.defaultProps = {}, _class2)) || _class);
|
|
109
109
|
export default PaginationArrowButton;
|
|
110
110
|
export { PaginationArrowButton };
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
var _dec, _class, _class2
|
|
1
|
+
var _dec, _class, _class2;
|
|
2
2
|
|
|
3
3
|
/*
|
|
4
4
|
* The MIT License (MIT)
|
|
@@ -35,7 +35,7 @@ parent: Pagination
|
|
|
35
35
|
id: Pagination.Page
|
|
36
36
|
---
|
|
37
37
|
**/
|
|
38
|
-
let PaginationButton = (_dec = testable(), _dec(_class = (
|
|
38
|
+
let PaginationButton = (_dec = testable(), _dec(_class = (_class2 = class PaginationButton extends Component {
|
|
39
39
|
constructor() {
|
|
40
40
|
super(...arguments);
|
|
41
41
|
this.ref = null;
|
|
@@ -60,6 +60,6 @@ let PaginationButton = (_dec = testable(), _dec(_class = (_temp = _class2 = clas
|
|
|
60
60
|
|
|
61
61
|
}, _class2.displayName = "PaginationButton", _class2.componentId = 'Pagination.Page', _class2.propTypes = propTypes, _class2.allowedProps = allowedProps, _class2.defaultProps = {
|
|
62
62
|
current: false
|
|
63
|
-
},
|
|
63
|
+
}, _class2)) || _class);
|
|
64
64
|
export default PaginationButton;
|
|
65
65
|
export { PaginationButton };
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
var _dec, _dec2, _class, _class2
|
|
1
|
+
var _dec, _dec2, _class, _class2;
|
|
2
2
|
|
|
3
3
|
/*
|
|
4
4
|
* The MIT License (MIT)
|
|
@@ -41,7 +41,7 @@ id: Pagination.PageInput
|
|
|
41
41
|
---
|
|
42
42
|
@tsProps
|
|
43
43
|
**/
|
|
44
|
-
let PaginationPageInput = (_dec = withStyle(generateStyle, generateComponentTheme), _dec2 = testable(), _dec(_class = _dec2(_class = (
|
|
44
|
+
let PaginationPageInput = (_dec = withStyle(generateStyle, generateComponentTheme), _dec2 = testable(), _dec(_class = _dec2(_class = (_class2 = class PaginationPageInput extends Component {
|
|
45
45
|
constructor(props) {
|
|
46
46
|
super(props);
|
|
47
47
|
this.ref = null;
|
|
@@ -200,6 +200,6 @@ let PaginationPageInput = (_dec = withStyle(generateStyle, generateComponentThem
|
|
|
200
200
|
|
|
201
201
|
}, _class2.displayName = "PaginationPageInput", _class2.componentId = 'Pagination.PageInput', _class2.propTypes = propTypes, _class2.allowedProps = allowedProps, _class2.defaultProps = {
|
|
202
202
|
disabled: false
|
|
203
|
-
},
|
|
203
|
+
}, _class2)) || _class) || _class);
|
|
204
204
|
export default PaginationPageInput;
|
|
205
205
|
export { PaginationPageInput };
|
package/es/Pagination/index.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
var _dec, _dec2, _dec3, _class, _class2,
|
|
1
|
+
var _dec, _dec2, _dec3, _class, _class2, _span, _span2;
|
|
2
2
|
|
|
3
3
|
/*
|
|
4
4
|
* The MIT License (MIT)
|
|
@@ -61,7 +61,7 @@ category: components
|
|
|
61
61
|
---
|
|
62
62
|
@tsProps
|
|
63
63
|
**/
|
|
64
|
-
let Pagination = (_dec = withDeterministicId(), _dec2 = withStyle(generateStyle, null), _dec3 = testable(), _dec(_class = _dec2(_class = _dec3(_class = (
|
|
64
|
+
let Pagination = (_dec = withDeterministicId(), _dec2 = withStyle(generateStyle, null), _dec3 = testable(), _dec(_class = _dec2(_class = _dec3(_class = (_class2 = class Pagination extends Component {
|
|
65
65
|
constructor(props) {
|
|
66
66
|
super(props);
|
|
67
67
|
this._labelId = void 0;
|
|
@@ -337,6 +337,6 @@ let Pagination = (_dec = withDeterministicId(), _dec2 = withStyle(generateStyle,
|
|
|
337
337
|
labelNumberInput: numberOfPages => `of ${numberOfPages}`,
|
|
338
338
|
screenReaderLabelNumberInput: (currentPage, numberOfPages) => `Select page (${currentPage} of ${numberOfPages})`,
|
|
339
339
|
shouldHandleFocus: true
|
|
340
|
-
}, _class2.Page = PaginationButton, _class2.Navigation = PaginationArrowButton,
|
|
340
|
+
}, _class2.Page = PaginationButton, _class2.Navigation = PaginationArrowButton, _class2)) || _class) || _class) || _class);
|
|
341
341
|
export default Pagination;
|
|
342
342
|
export { Pagination, PaginationButton };
|
|
@@ -33,7 +33,7 @@ var _props = require("./props");
|
|
|
33
33
|
|
|
34
34
|
const _excluded = ["label", "direction", "buttonRef"];
|
|
35
35
|
|
|
36
|
-
var _dec, _class, _class2
|
|
36
|
+
var _dec, _class, _class2;
|
|
37
37
|
|
|
38
38
|
/**
|
|
39
39
|
---
|
|
@@ -42,7 +42,7 @@ id: Pagination.Navigation
|
|
|
42
42
|
---
|
|
43
43
|
@tsProps
|
|
44
44
|
**/
|
|
45
|
-
let PaginationArrowButton = (_dec = (0, _testable.testable)(), _dec(_class = (
|
|
45
|
+
let PaginationArrowButton = (_dec = (0, _testable.testable)(), _dec(_class = (_class2 = class PaginationArrowButton extends _react.Component {
|
|
46
46
|
constructor() {
|
|
47
47
|
super(...arguments);
|
|
48
48
|
this.ref = null;
|
|
@@ -105,7 +105,7 @@ let PaginationArrowButton = (_dec = (0, _testable.testable)(), _dec(_class = (_t
|
|
|
105
105
|
}), this.Icon));
|
|
106
106
|
}
|
|
107
107
|
|
|
108
|
-
}, _class2.displayName = "PaginationArrowButton", _class2.componentId = 'Pagination.Navigation', _class2.allowedProps = _props.allowedProps, _class2.propTypes = _props.propTypes, _class2.defaultProps = {},
|
|
108
|
+
}, _class2.displayName = "PaginationArrowButton", _class2.componentId = 'Pagination.Navigation', _class2.allowedProps = _props.allowedProps, _class2.propTypes = _props.propTypes, _class2.defaultProps = {}, _class2)) || _class);
|
|
109
109
|
exports.PaginationArrowButton = PaginationArrowButton;
|
|
110
110
|
var _default = PaginationArrowButton;
|
|
111
111
|
exports.default = _default;
|
|
@@ -17,7 +17,7 @@ var _testable = require("@instructure/ui-testable/lib/testable.js");
|
|
|
17
17
|
|
|
18
18
|
var _props = require("./props");
|
|
19
19
|
|
|
20
|
-
var _dec, _class, _class2
|
|
20
|
+
var _dec, _class, _class2;
|
|
21
21
|
|
|
22
22
|
/**
|
|
23
23
|
---
|
|
@@ -25,7 +25,7 @@ parent: Pagination
|
|
|
25
25
|
id: Pagination.Page
|
|
26
26
|
---
|
|
27
27
|
**/
|
|
28
|
-
let PaginationButton = (_dec = (0, _testable.testable)(), _dec(_class = (
|
|
28
|
+
let PaginationButton = (_dec = (0, _testable.testable)(), _dec(_class = (_class2 = class PaginationButton extends _react.Component {
|
|
29
29
|
constructor() {
|
|
30
30
|
super(...arguments);
|
|
31
31
|
this.ref = null;
|
|
@@ -50,7 +50,7 @@ let PaginationButton = (_dec = (0, _testable.testable)(), _dec(_class = (_temp =
|
|
|
50
50
|
|
|
51
51
|
}, _class2.displayName = "PaginationButton", _class2.componentId = 'Pagination.Page', _class2.propTypes = _props.propTypes, _class2.allowedProps = _props.allowedProps, _class2.defaultProps = {
|
|
52
52
|
current: false
|
|
53
|
-
},
|
|
53
|
+
}, _class2)) || _class);
|
|
54
54
|
exports.PaginationButton = PaginationButton;
|
|
55
55
|
var _default = PaginationButton;
|
|
56
56
|
exports.default = _default;
|
|
@@ -25,7 +25,7 @@ var _theme = _interopRequireDefault(require("./theme"));
|
|
|
25
25
|
|
|
26
26
|
var _props = require("./props");
|
|
27
27
|
|
|
28
|
-
var _dec, _dec2, _class, _class2
|
|
28
|
+
var _dec, _dec2, _class, _class2;
|
|
29
29
|
|
|
30
30
|
/**
|
|
31
31
|
---
|
|
@@ -34,7 +34,7 @@ id: Pagination.PageInput
|
|
|
34
34
|
---
|
|
35
35
|
@tsProps
|
|
36
36
|
**/
|
|
37
|
-
let PaginationPageInput = (_dec = (0, _emotion.withStyle)(_styles.default, _theme.default), _dec2 = (0, _testable.testable)(), _dec(_class = _dec2(_class = (
|
|
37
|
+
let PaginationPageInput = (_dec = (0, _emotion.withStyle)(_styles.default, _theme.default), _dec2 = (0, _testable.testable)(), _dec(_class = _dec2(_class = (_class2 = class PaginationPageInput extends _react.Component {
|
|
38
38
|
constructor(props) {
|
|
39
39
|
super(props);
|
|
40
40
|
this.ref = null;
|
|
@@ -193,7 +193,7 @@ let PaginationPageInput = (_dec = (0, _emotion.withStyle)(_styles.default, _them
|
|
|
193
193
|
|
|
194
194
|
}, _class2.displayName = "PaginationPageInput", _class2.componentId = 'Pagination.PageInput', _class2.propTypes = _props.propTypes, _class2.allowedProps = _props.allowedProps, _class2.defaultProps = {
|
|
195
195
|
disabled: false
|
|
196
|
-
},
|
|
196
|
+
}, _class2)) || _class) || _class);
|
|
197
197
|
exports.PaginationPageInput = PaginationPageInput;
|
|
198
198
|
var _default = PaginationPageInput;
|
|
199
199
|
exports.default = _default;
|
package/lib/Pagination/index.js
CHANGED
|
@@ -44,7 +44,7 @@ var _styles = _interopRequireDefault(require("./styles"));
|
|
|
44
44
|
|
|
45
45
|
var _props = require("./props");
|
|
46
46
|
|
|
47
|
-
var _dec, _dec2, _dec3, _class, _class2,
|
|
47
|
+
var _dec, _dec2, _dec3, _class, _class2, _span, _span2;
|
|
48
48
|
|
|
49
49
|
/** This is an [].findIndex optimized to work on really big, but sparse, arrays */
|
|
50
50
|
const fastFindIndex = (arr, fn) => Number(Object.keys(arr).find(k => fn(arr[Number(k)])));
|
|
@@ -69,7 +69,7 @@ category: components
|
|
|
69
69
|
---
|
|
70
70
|
@tsProps
|
|
71
71
|
**/
|
|
72
|
-
let Pagination = (_dec = (0, _withDeterministicId.withDeterministicId)(), _dec2 = (0, _emotion.withStyle)(_styles.default, null), _dec3 = (0, _testable.testable)(), _dec(_class = _dec2(_class = _dec3(_class = (
|
|
72
|
+
let Pagination = (_dec = (0, _withDeterministicId.withDeterministicId)(), _dec2 = (0, _emotion.withStyle)(_styles.default, null), _dec3 = (0, _testable.testable)(), _dec(_class = _dec2(_class = _dec3(_class = (_class2 = class Pagination extends _react.Component {
|
|
73
73
|
constructor(props) {
|
|
74
74
|
super(props);
|
|
75
75
|
this._labelId = void 0;
|
|
@@ -347,7 +347,7 @@ let Pagination = (_dec = (0, _withDeterministicId.withDeterministicId)(), _dec2
|
|
|
347
347
|
labelNumberInput: numberOfPages => `of ${numberOfPages}`,
|
|
348
348
|
screenReaderLabelNumberInput: (currentPage, numberOfPages) => `Select page (${currentPage} of ${numberOfPages})`,
|
|
349
349
|
shouldHandleFocus: true
|
|
350
|
-
}, _class2.Page = _PaginationButton.PaginationButton, _class2.Navigation = _PaginationArrowButton.PaginationArrowButton,
|
|
350
|
+
}, _class2.Page = _PaginationButton.PaginationButton, _class2.Navigation = _PaginationArrowButton.PaginationArrowButton, _class2)) || _class) || _class) || _class);
|
|
351
351
|
exports.Pagination = Pagination;
|
|
352
352
|
var _default = Pagination;
|
|
353
353
|
exports.default = _default;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@instructure/ui-pagination",
|
|
3
|
-
"version": "8.23.
|
|
3
|
+
"version": "8.23.1-snapshot.11+5e829fae6",
|
|
4
4
|
"description": "A UI component library made by Instructure Inc.",
|
|
5
5
|
"author": "Instructure, Inc. Engineering and Product Design",
|
|
6
6
|
"module": "./es/index.js",
|
|
@@ -23,29 +23,29 @@
|
|
|
23
23
|
},
|
|
24
24
|
"license": "MIT",
|
|
25
25
|
"devDependencies": {
|
|
26
|
-
"@instructure/ui-babel-preset": "8.23.
|
|
27
|
-
"@instructure/ui-test-locator": "8.23.
|
|
28
|
-
"@instructure/ui-test-queries": "8.23.
|
|
29
|
-
"@instructure/ui-test-utils": "8.23.
|
|
26
|
+
"@instructure/ui-babel-preset": "8.23.1-snapshot.11+5e829fae6",
|
|
27
|
+
"@instructure/ui-test-locator": "8.23.1-snapshot.11+5e829fae6",
|
|
28
|
+
"@instructure/ui-test-queries": "8.23.1-snapshot.11+5e829fae6",
|
|
29
|
+
"@instructure/ui-test-utils": "8.23.1-snapshot.11+5e829fae6"
|
|
30
30
|
},
|
|
31
31
|
"dependencies": {
|
|
32
32
|
"@babel/runtime": "^7.13.10",
|
|
33
|
-
"@instructure/emotion": "8.23.
|
|
34
|
-
"@instructure/shared-types": "8.23.
|
|
35
|
-
"@instructure/ui-a11y-content": "8.23.
|
|
36
|
-
"@instructure/ui-a11y-utils": "8.23.
|
|
37
|
-
"@instructure/ui-buttons": "8.23.
|
|
38
|
-
"@instructure/ui-dom-utils": "8.23.
|
|
39
|
-
"@instructure/ui-icons": "8.23.
|
|
40
|
-
"@instructure/ui-number-input": "8.23.
|
|
41
|
-
"@instructure/ui-portal": "8.23.
|
|
42
|
-
"@instructure/ui-prop-types": "8.23.
|
|
43
|
-
"@instructure/ui-react-utils": "8.23.
|
|
44
|
-
"@instructure/ui-testable": "8.23.
|
|
45
|
-
"@instructure/ui-tooltip": "8.23.
|
|
46
|
-
"@instructure/ui-utils": "8.23.
|
|
47
|
-
"@instructure/ui-view": "8.23.
|
|
48
|
-
"@instructure/uid": "8.23.
|
|
33
|
+
"@instructure/emotion": "8.23.1-snapshot.11+5e829fae6",
|
|
34
|
+
"@instructure/shared-types": "8.23.1-snapshot.11+5e829fae6",
|
|
35
|
+
"@instructure/ui-a11y-content": "8.23.1-snapshot.11+5e829fae6",
|
|
36
|
+
"@instructure/ui-a11y-utils": "8.23.1-snapshot.11+5e829fae6",
|
|
37
|
+
"@instructure/ui-buttons": "8.23.1-snapshot.11+5e829fae6",
|
|
38
|
+
"@instructure/ui-dom-utils": "8.23.1-snapshot.11+5e829fae6",
|
|
39
|
+
"@instructure/ui-icons": "8.23.1-snapshot.11+5e829fae6",
|
|
40
|
+
"@instructure/ui-number-input": "8.23.1-snapshot.11+5e829fae6",
|
|
41
|
+
"@instructure/ui-portal": "8.23.1-snapshot.11+5e829fae6",
|
|
42
|
+
"@instructure/ui-prop-types": "8.23.1-snapshot.11+5e829fae6",
|
|
43
|
+
"@instructure/ui-react-utils": "8.23.1-snapshot.11+5e829fae6",
|
|
44
|
+
"@instructure/ui-testable": "8.23.1-snapshot.11+5e829fae6",
|
|
45
|
+
"@instructure/ui-tooltip": "8.23.1-snapshot.11+5e829fae6",
|
|
46
|
+
"@instructure/ui-utils": "8.23.1-snapshot.11+5e829fae6",
|
|
47
|
+
"@instructure/ui-view": "8.23.1-snapshot.11+5e829fae6",
|
|
48
|
+
"@instructure/uid": "8.23.1-snapshot.11+5e829fae6",
|
|
49
49
|
"keycode": "^2",
|
|
50
50
|
"prop-types": "^15"
|
|
51
51
|
},
|
|
@@ -55,5 +55,6 @@
|
|
|
55
55
|
"publishConfig": {
|
|
56
56
|
"access": "public"
|
|
57
57
|
},
|
|
58
|
-
"sideEffects": false
|
|
58
|
+
"sideEffects": false,
|
|
59
|
+
"gitHead": "5e829fae6b005f080497818df8b3fff19365aab3"
|
|
59
60
|
}
|