@instructure/ui-pagination 9.1.1-snapshot-9 → 9.1.1-snapshot-14

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 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-9](https://github.com/instructure/instructure-ui/compare/v9.1.0...v9.1.1-snapshot-9) (2024-07-05)
6
+ ## [9.1.1-snapshot-14](https://github.com/instructure/instructure-ui/compare/v9.1.0...v9.1.1-snapshot-14) (2024-07-05)
7
7
 
8
- **Note:** Version bump only for package @instructure/ui-pagination
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('textbox');
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('textbox');
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('textbox');
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('textbox');
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('3');
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('textbox');
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('textbox');
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('textbox');
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('textbox');
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('3');
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-9",
3
+ "version": "9.1.1-snapshot-14",
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-9",
27
- "@instructure/ui-babel-preset": "9.1.1-snapshot-9",
28
- "@instructure/ui-test-utils": "9.1.1-snapshot-9",
26
+ "@instructure/ui-axe-check": "9.1.1-snapshot-14",
27
+ "@instructure/ui-babel-preset": "9.1.1-snapshot-14",
28
+ "@instructure/ui-test-utils": "9.1.1-snapshot-14",
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-9",
36
- "@instructure/shared-types": "9.1.1-snapshot-9",
37
- "@instructure/ui-a11y-content": "9.1.1-snapshot-9",
38
- "@instructure/ui-a11y-utils": "9.1.1-snapshot-9",
39
- "@instructure/ui-buttons": "9.1.1-snapshot-9",
40
- "@instructure/ui-dom-utils": "9.1.1-snapshot-9",
41
- "@instructure/ui-icons": "9.1.1-snapshot-9",
42
- "@instructure/ui-number-input": "9.1.1-snapshot-9",
43
- "@instructure/ui-portal": "9.1.1-snapshot-9",
44
- "@instructure/ui-prop-types": "9.1.1-snapshot-9",
45
- "@instructure/ui-react-utils": "9.1.1-snapshot-9",
46
- "@instructure/ui-testable": "9.1.1-snapshot-9",
47
- "@instructure/ui-themes": "9.1.1-snapshot-9",
48
- "@instructure/ui-tooltip": "9.1.1-snapshot-9",
49
- "@instructure/ui-utils": "9.1.1-snapshot-9",
50
- "@instructure/ui-view": "9.1.1-snapshot-9",
51
- "@instructure/uid": "9.1.1-snapshot-9",
35
+ "@instructure/emotion": "9.1.1-snapshot-14",
36
+ "@instructure/shared-types": "9.1.1-snapshot-14",
37
+ "@instructure/ui-a11y-content": "9.1.1-snapshot-14",
38
+ "@instructure/ui-a11y-utils": "9.1.1-snapshot-14",
39
+ "@instructure/ui-buttons": "9.1.1-snapshot-14",
40
+ "@instructure/ui-dom-utils": "9.1.1-snapshot-14",
41
+ "@instructure/ui-icons": "9.1.1-snapshot-14",
42
+ "@instructure/ui-number-input": "9.1.1-snapshot-14",
43
+ "@instructure/ui-portal": "9.1.1-snapshot-14",
44
+ "@instructure/ui-prop-types": "9.1.1-snapshot-14",
45
+ "@instructure/ui-react-utils": "9.1.1-snapshot-14",
46
+ "@instructure/ui-testable": "9.1.1-snapshot-14",
47
+ "@instructure/ui-themes": "9.1.1-snapshot-14",
48
+ "@instructure/ui-tooltip": "9.1.1-snapshot-14",
49
+ "@instructure/ui-utils": "9.1.1-snapshot-14",
50
+ "@instructure/ui-view": "9.1.1-snapshot-14",
51
+ "@instructure/uid": "9.1.1-snapshot-14",
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('textbox')
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('textbox')
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('textbox')
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('textbox')
120
+ const input = screen.getByRole('spinbutton')
121
121
 
122
122
  expect(input).toHaveAttribute('disabled')
123
123
  })
@@ -848,7 +848,7 @@ describe('<Pagination />', () => {
848
848
  )
849
849
  const numberInput = container.querySelector('input')
850
850
 
851
- expect(numberInput).toHaveValue('3')
851
+ expect(numberInput).toHaveValue(3)
852
852
  })
853
853
 
854
854
  it('should display all arrow buttons', async () => {