@instructure/ui-pagination 9.1.1-snapshot-9 → 9.1.1-snapshot-12
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 +5 -2
- package/es/Pagination/PaginationPageInput/__new-tests__/PaginationPageInput.test.js +4 -4
- package/es/Pagination/__new-tests__/Pagination.test.js +1 -1
- package/lib/Pagination/PaginationPageInput/__new-tests__/PaginationPageInput.test.js +4 -4
- package/lib/Pagination/__new-tests__/Pagination.test.js +1 -1
- package/package.json +21 -21
- package/src/Pagination/PaginationPageInput/__new-tests__/PaginationPageInput.test.tsx +4 -4
- package/src/Pagination/__new-tests__/Pagination.test.tsx +1 -1
- package/tsconfig.build.tsbuildinfo +1 -1
package/CHANGELOG.md
CHANGED
|
@@ -3,9 +3,12 @@
|
|
|
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
|
-
## [9.1.1-snapshot-
|
|
6
|
+
## [9.1.1-snapshot-12](https://github.com/instructure/instructure-ui/compare/v9.1.0...v9.1.1-snapshot-12) (2024-07-05)
|
|
7
7
|
|
|
8
|
-
|
|
8
|
+
|
|
9
|
+
### Bug Fixes
|
|
10
|
+
|
|
11
|
+
* **ui-number-input,ui-pagination:** set numberinput type to number ([19f27f5](https://github.com/instructure/instructure-ui/commit/19f27f57470b4c9c5728009eae6b1fddcbb78695))
|
|
9
12
|
|
|
10
13
|
|
|
11
14
|
|
|
@@ -36,7 +36,7 @@ describe('<PaginationPageInput />', () => {
|
|
|
36
36
|
onChange: defaultOnChange,
|
|
37
37
|
screenReaderLabel: defaultSRLabel
|
|
38
38
|
}));
|
|
39
|
-
const input = screen.getByRole('
|
|
39
|
+
const input = screen.getByRole('spinbutton');
|
|
40
40
|
expect(input).toBeInTheDocument();
|
|
41
41
|
expect(input.tagName).toBe('INPUT');
|
|
42
42
|
});
|
|
@@ -48,7 +48,7 @@ describe('<PaginationPageInput />', () => {
|
|
|
48
48
|
onChange: defaultOnChange,
|
|
49
49
|
screenReaderLabel: defaultSRLabel
|
|
50
50
|
}));
|
|
51
|
-
const input = screen.getByRole('
|
|
51
|
+
const input = screen.getByRole('spinbutton');
|
|
52
52
|
expect(input).toHaveAttribute('value', '4');
|
|
53
53
|
});
|
|
54
54
|
it('should correctly update page number', async () => {
|
|
@@ -60,7 +60,7 @@ describe('<PaginationPageInput />', () => {
|
|
|
60
60
|
screenReaderLabel: defaultSRLabel
|
|
61
61
|
})),
|
|
62
62
|
rerender = _render.rerender;
|
|
63
|
-
const input = screen.getByRole('
|
|
63
|
+
const input = screen.getByRole('spinbutton');
|
|
64
64
|
expect(input).toHaveAttribute('value', '4');
|
|
65
65
|
|
|
66
66
|
// Set currentPageIndex: 6
|
|
@@ -95,7 +95,7 @@ describe('<PaginationPageInput />', () => {
|
|
|
95
95
|
screenReaderLabel: defaultSRLabel,
|
|
96
96
|
disabled: true
|
|
97
97
|
}));
|
|
98
|
-
const input = screen.getByRole('
|
|
98
|
+
const input = screen.getByRole('spinbutton');
|
|
99
99
|
expect(input).toHaveAttribute('disabled');
|
|
100
100
|
});
|
|
101
101
|
it('should set the ScreenReaderLabel for the input', async () => {
|
|
@@ -758,7 +758,7 @@ describe('<Pagination />', () => {
|
|
|
758
758
|
}, [...buildPages(6, 2)])),
|
|
759
759
|
container = _render20.container;
|
|
760
760
|
const numberInput = container.querySelector('input');
|
|
761
|
-
expect(numberInput).toHaveValue(
|
|
761
|
+
expect(numberInput).toHaveValue(3);
|
|
762
762
|
});
|
|
763
763
|
it('should display all arrow buttons', async () => {
|
|
764
764
|
render( /*#__PURE__*/React.createElement(Pagination, {
|
|
@@ -39,7 +39,7 @@ describe('<PaginationPageInput />', () => {
|
|
|
39
39
|
onChange: defaultOnChange,
|
|
40
40
|
screenReaderLabel: defaultSRLabel
|
|
41
41
|
}));
|
|
42
|
-
const input = _react2.screen.getByRole('
|
|
42
|
+
const input = _react2.screen.getByRole('spinbutton');
|
|
43
43
|
expect(input).toBeInTheDocument();
|
|
44
44
|
expect(input.tagName).toBe('INPUT');
|
|
45
45
|
});
|
|
@@ -51,7 +51,7 @@ describe('<PaginationPageInput />', () => {
|
|
|
51
51
|
onChange: defaultOnChange,
|
|
52
52
|
screenReaderLabel: defaultSRLabel
|
|
53
53
|
}));
|
|
54
|
-
const input = _react2.screen.getByRole('
|
|
54
|
+
const input = _react2.screen.getByRole('spinbutton');
|
|
55
55
|
expect(input).toHaveAttribute('value', '4');
|
|
56
56
|
});
|
|
57
57
|
it('should correctly update page number', async () => {
|
|
@@ -63,7 +63,7 @@ describe('<PaginationPageInput />', () => {
|
|
|
63
63
|
screenReaderLabel: defaultSRLabel
|
|
64
64
|
})),
|
|
65
65
|
rerender = _render.rerender;
|
|
66
|
-
const input = _react2.screen.getByRole('
|
|
66
|
+
const input = _react2.screen.getByRole('spinbutton');
|
|
67
67
|
expect(input).toHaveAttribute('value', '4');
|
|
68
68
|
|
|
69
69
|
// Set currentPageIndex: 6
|
|
@@ -98,7 +98,7 @@ describe('<PaginationPageInput />', () => {
|
|
|
98
98
|
screenReaderLabel: defaultSRLabel,
|
|
99
99
|
disabled: true
|
|
100
100
|
}));
|
|
101
|
-
const input = _react2.screen.getByRole('
|
|
101
|
+
const input = _react2.screen.getByRole('spinbutton');
|
|
102
102
|
expect(input).toHaveAttribute('disabled');
|
|
103
103
|
});
|
|
104
104
|
it('should set the ScreenReaderLabel for the input', async () => {
|
|
@@ -760,7 +760,7 @@ describe('<Pagination />', () => {
|
|
|
760
760
|
}, [...buildPages(6, 2)])),
|
|
761
761
|
container = _render20.container;
|
|
762
762
|
const numberInput = container.querySelector('input');
|
|
763
|
-
expect(numberInput).toHaveValue(
|
|
763
|
+
expect(numberInput).toHaveValue(3);
|
|
764
764
|
});
|
|
765
765
|
it('should display all arrow buttons', async () => {
|
|
766
766
|
(0, _react2.render)( /*#__PURE__*/_react.default.createElement(_index.Pagination, {
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@instructure/ui-pagination",
|
|
3
|
-
"version": "9.1.1-snapshot-
|
|
3
|
+
"version": "9.1.1-snapshot-12",
|
|
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,32 +23,32 @@
|
|
|
23
23
|
},
|
|
24
24
|
"license": "MIT",
|
|
25
25
|
"devDependencies": {
|
|
26
|
-
"@instructure/ui-axe-check": "9.1.1-snapshot-
|
|
27
|
-
"@instructure/ui-babel-preset": "9.1.1-snapshot-
|
|
28
|
-
"@instructure/ui-test-utils": "9.1.1-snapshot-
|
|
26
|
+
"@instructure/ui-axe-check": "9.1.1-snapshot-12",
|
|
27
|
+
"@instructure/ui-babel-preset": "9.1.1-snapshot-12",
|
|
28
|
+
"@instructure/ui-test-utils": "9.1.1-snapshot-12",
|
|
29
29
|
"@testing-library/jest-dom": "^6.4.5",
|
|
30
30
|
"@testing-library/react": "^15.0.7",
|
|
31
31
|
"@testing-library/user-event": "^14.5.2"
|
|
32
32
|
},
|
|
33
33
|
"dependencies": {
|
|
34
34
|
"@babel/runtime": "^7.24.5",
|
|
35
|
-
"@instructure/emotion": "9.1.1-snapshot-
|
|
36
|
-
"@instructure/shared-types": "9.1.1-snapshot-
|
|
37
|
-
"@instructure/ui-a11y-content": "9.1.1-snapshot-
|
|
38
|
-
"@instructure/ui-a11y-utils": "9.1.1-snapshot-
|
|
39
|
-
"@instructure/ui-buttons": "9.1.1-snapshot-
|
|
40
|
-
"@instructure/ui-dom-utils": "9.1.1-snapshot-
|
|
41
|
-
"@instructure/ui-icons": "9.1.1-snapshot-
|
|
42
|
-
"@instructure/ui-number-input": "9.1.1-snapshot-
|
|
43
|
-
"@instructure/ui-portal": "9.1.1-snapshot-
|
|
44
|
-
"@instructure/ui-prop-types": "9.1.1-snapshot-
|
|
45
|
-
"@instructure/ui-react-utils": "9.1.1-snapshot-
|
|
46
|
-
"@instructure/ui-testable": "9.1.1-snapshot-
|
|
47
|
-
"@instructure/ui-themes": "9.1.1-snapshot-
|
|
48
|
-
"@instructure/ui-tooltip": "9.1.1-snapshot-
|
|
49
|
-
"@instructure/ui-utils": "9.1.1-snapshot-
|
|
50
|
-
"@instructure/ui-view": "9.1.1-snapshot-
|
|
51
|
-
"@instructure/uid": "9.1.1-snapshot-
|
|
35
|
+
"@instructure/emotion": "9.1.1-snapshot-12",
|
|
36
|
+
"@instructure/shared-types": "9.1.1-snapshot-12",
|
|
37
|
+
"@instructure/ui-a11y-content": "9.1.1-snapshot-12",
|
|
38
|
+
"@instructure/ui-a11y-utils": "9.1.1-snapshot-12",
|
|
39
|
+
"@instructure/ui-buttons": "9.1.1-snapshot-12",
|
|
40
|
+
"@instructure/ui-dom-utils": "9.1.1-snapshot-12",
|
|
41
|
+
"@instructure/ui-icons": "9.1.1-snapshot-12",
|
|
42
|
+
"@instructure/ui-number-input": "9.1.1-snapshot-12",
|
|
43
|
+
"@instructure/ui-portal": "9.1.1-snapshot-12",
|
|
44
|
+
"@instructure/ui-prop-types": "9.1.1-snapshot-12",
|
|
45
|
+
"@instructure/ui-react-utils": "9.1.1-snapshot-12",
|
|
46
|
+
"@instructure/ui-testable": "9.1.1-snapshot-12",
|
|
47
|
+
"@instructure/ui-themes": "9.1.1-snapshot-12",
|
|
48
|
+
"@instructure/ui-tooltip": "9.1.1-snapshot-12",
|
|
49
|
+
"@instructure/ui-utils": "9.1.1-snapshot-12",
|
|
50
|
+
"@instructure/ui-view": "9.1.1-snapshot-12",
|
|
51
|
+
"@instructure/uid": "9.1.1-snapshot-12",
|
|
52
52
|
"prop-types": "^15.8.1"
|
|
53
53
|
},
|
|
54
54
|
"peerDependencies": {
|
|
@@ -42,7 +42,7 @@ describe('<PaginationPageInput />', () => {
|
|
|
42
42
|
screenReaderLabel={defaultSRLabel}
|
|
43
43
|
/>
|
|
44
44
|
)
|
|
45
|
-
const input = screen.getByRole('
|
|
45
|
+
const input = screen.getByRole('spinbutton')
|
|
46
46
|
|
|
47
47
|
expect(input).toBeInTheDocument()
|
|
48
48
|
expect(input.tagName).toBe('INPUT')
|
|
@@ -58,7 +58,7 @@ describe('<PaginationPageInput />', () => {
|
|
|
58
58
|
screenReaderLabel={defaultSRLabel}
|
|
59
59
|
/>
|
|
60
60
|
)
|
|
61
|
-
const input = screen.getByRole('
|
|
61
|
+
const input = screen.getByRole('spinbutton')
|
|
62
62
|
|
|
63
63
|
expect(input).toHaveAttribute('value', '4')
|
|
64
64
|
})
|
|
@@ -73,7 +73,7 @@ describe('<PaginationPageInput />', () => {
|
|
|
73
73
|
screenReaderLabel={defaultSRLabel}
|
|
74
74
|
/>
|
|
75
75
|
)
|
|
76
|
-
const input = screen.getByRole('
|
|
76
|
+
const input = screen.getByRole('spinbutton')
|
|
77
77
|
|
|
78
78
|
expect(input).toHaveAttribute('value', '4')
|
|
79
79
|
|
|
@@ -117,7 +117,7 @@ describe('<PaginationPageInput />', () => {
|
|
|
117
117
|
disabled
|
|
118
118
|
/>
|
|
119
119
|
)
|
|
120
|
-
const input = screen.getByRole('
|
|
120
|
+
const input = screen.getByRole('spinbutton')
|
|
121
121
|
|
|
122
122
|
expect(input).toHaveAttribute('disabled')
|
|
123
123
|
})
|