@instructure/ui-pagination 11.7.4-snapshot-14 → 11.7.4-snapshot-49

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.
Files changed (54) hide show
  1. package/CHANGELOG.md +1 -1
  2. package/LICENSE.md +1 -0
  3. package/es/Pagination/v1/PaginationArrowButton/index.js +3 -2
  4. package/es/Pagination/v1/PaginationButton/index.js +2 -2
  5. package/es/Pagination/v1/PaginationPageInput/index.js +4 -4
  6. package/es/Pagination/v1/index.js +7 -7
  7. package/es/Pagination/v2/PaginationArrowButton/index.js +3 -2
  8. package/es/Pagination/v2/PaginationButton/index.js +2 -2
  9. package/es/Pagination/v2/PaginationPageInput/index.js +3 -3
  10. package/es/Pagination/v2/index.js +6 -6
  11. package/es/exports/a.js +2 -1
  12. package/es/exports/b.js +2 -1
  13. package/lib/Pagination/v1/PaginationArrowButton/index.js +2 -2
  14. package/lib/Pagination/v1/PaginationButton/index.js +2 -2
  15. package/lib/Pagination/v1/PaginationPageInput/index.js +4 -4
  16. package/lib/Pagination/v1/index.js +14 -14
  17. package/lib/Pagination/v2/PaginationArrowButton/index.js +2 -2
  18. package/lib/Pagination/v2/PaginationButton/index.js +2 -2
  19. package/lib/Pagination/v2/PaginationPageInput/index.js +3 -3
  20. package/lib/Pagination/v2/index.js +14 -14
  21. package/lib/exports/a.js +3 -3
  22. package/lib/exports/b.js +3 -3
  23. package/package.json +19 -19
  24. package/src/Pagination/v1/PaginationArrowButton/index.tsx +2 -1
  25. package/src/Pagination/v1/PaginationButton/index.tsx +2 -1
  26. package/src/Pagination/v1/PaginationPageInput/index.tsx +4 -3
  27. package/src/Pagination/v1/index.tsx +7 -6
  28. package/src/Pagination/v2/PaginationArrowButton/index.tsx +2 -1
  29. package/src/Pagination/v2/PaginationButton/index.tsx +2 -1
  30. package/src/Pagination/v2/PaginationPageInput/index.tsx +3 -2
  31. package/src/Pagination/v2/index.tsx +6 -5
  32. package/src/exports/a.ts +1 -1
  33. package/src/exports/b.ts +1 -1
  34. package/tsconfig.build.tsbuildinfo +1 -1
  35. package/types/Pagination/v1/PaginationArrowButton/index.d.ts +1 -0
  36. package/types/Pagination/v1/PaginationArrowButton/index.d.ts.map +1 -1
  37. package/types/Pagination/v1/PaginationButton/index.d.ts +1 -0
  38. package/types/Pagination/v1/PaginationButton/index.d.ts.map +1 -1
  39. package/types/Pagination/v1/PaginationPageInput/index.d.ts +1 -0
  40. package/types/Pagination/v1/PaginationPageInput/index.d.ts.map +1 -1
  41. package/types/Pagination/v1/index.d.ts +3 -2
  42. package/types/Pagination/v1/index.d.ts.map +1 -1
  43. package/types/Pagination/v2/PaginationArrowButton/index.d.ts +1 -0
  44. package/types/Pagination/v2/PaginationArrowButton/index.d.ts.map +1 -1
  45. package/types/Pagination/v2/PaginationButton/index.d.ts +1 -0
  46. package/types/Pagination/v2/PaginationButton/index.d.ts.map +1 -1
  47. package/types/Pagination/v2/PaginationPageInput/index.d.ts +1 -0
  48. package/types/Pagination/v2/PaginationPageInput/index.d.ts.map +1 -1
  49. package/types/Pagination/v2/index.d.ts +4 -3
  50. package/types/Pagination/v2/index.d.ts.map +1 -1
  51. package/types/exports/a.d.ts +1 -1
  52. package/types/exports/a.d.ts.map +1 -1
  53. package/types/exports/b.d.ts +1 -1
  54. package/types/exports/b.d.ts.map +1 -1
package/CHANGELOG.md CHANGED
@@ -3,7 +3,7 @@
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
- ## [11.7.4-snapshot-14](https://github.com/instructure/instructure-ui/compare/v11.7.3...v11.7.4-snapshot-14) (2026-05-20)
6
+ ## [11.7.4-snapshot-49](https://github.com/instructure/instructure-ui/compare/v11.7.3...v11.7.4-snapshot-49) (2026-06-17)
7
7
 
8
8
 
9
9
  ### Features
package/LICENSE.md CHANGED
@@ -2,6 +2,7 @@
2
2
  title: The MIT License (MIT)
3
3
  category: Getting Started
4
4
  order: 9
5
+ isWIP: true
5
6
  ---
6
7
 
7
8
  # The MIT License (MIT)
@@ -27,7 +27,8 @@ import { IconButton } from '@instructure/ui-buttons/v11_6';
27
27
  import { PresentationContent } from '@instructure/ui-a11y-content';
28
28
  import { Tooltip } from '@instructure/ui-tooltip/v11_6';
29
29
  import { IconArrowOpenStartSolid, IconArrowOpenEndSolid, IconArrowDoubleStartSolid, IconArrowDoubleEndSolid } from '@instructure/ui-icons';
30
- import { allowedProps } from "./props.js";
30
+ import { allowedProps } from './props.js';
31
+
31
32
  /**
32
33
  ---
33
34
  parent: Pagination
@@ -36,7 +37,7 @@ id: Pagination.Navigation
36
37
  **/
37
38
  import { jsx as _jsx } from "@emotion/react/jsx-runtime";
38
39
  class PaginationArrowButton extends Component {
39
- static displayName = "PaginationArrowButton";
40
+ static displayName = 'PaginationArrowButton';
40
41
  static componentId = 'Pagination.Navigation';
41
42
  static allowedProps = allowedProps;
42
43
  static defaultProps = {};
@@ -25,7 +25,7 @@
25
25
  import { Component } from 'react';
26
26
  import { BaseButton } from '@instructure/ui-buttons/v11_6';
27
27
  import { omitProps } from '@instructure/ui-react-utils';
28
- import { allowedProps } from "./props.js";
28
+ import { allowedProps } from './props.js';
29
29
  import { jsx as _jsx } from "@emotion/react/jsx-runtime";
30
30
  /**
31
31
  ---
@@ -35,7 +35,7 @@ id: Pagination.Page
35
35
  **/
36
36
 
37
37
  class PaginationButton extends Component {
38
- static displayName = "PaginationButton";
38
+ static displayName = 'PaginationButton';
39
39
  static componentId = 'Pagination.Page';
40
40
  static allowedProps = allowedProps;
41
41
  static defaultProps = {
@@ -27,9 +27,9 @@ import { Component } from 'react';
27
27
  import { withStyle } from '@instructure/emotion';
28
28
  import { NumberInput } from '@instructure/ui-number-input/v11_6';
29
29
  import { ScreenReaderContent } from '@instructure/ui-a11y-content';
30
- import generateStyle from "./styles.js";
31
- import generateComponentTheme from "./theme.js";
32
- import { allowedProps } from "./props.js";
30
+ import generateStyle from './styles.js';
31
+ import generateComponentTheme from './theme.js';
32
+ import { allowedProps } from './props.js';
33
33
  import { jsx as _jsx, jsxs as _jsxs } from "@emotion/react/jsx-runtime";
34
34
  /**
35
35
  ---
@@ -38,7 +38,7 @@ id: Pagination.PageInput
38
38
  ---
39
39
  **/
40
40
  let PaginationPageInput = (_dec = withStyle(generateStyle, generateComponentTheme), _dec(_class = class PaginationPageInput extends Component {
41
- static displayName = "PaginationPageInput";
41
+ static displayName = 'PaginationPageInput';
42
42
  static componentId = 'Pagination.PageInput';
43
43
  static allowedProps = allowedProps;
44
44
  static defaultProps = {
@@ -28,12 +28,12 @@ import { omitProps, withDeterministicId } from '@instructure/ui-react-utils';
28
28
  import { hasVisibleChildren } from '@instructure/ui-a11y-utils';
29
29
  import { findTabbable, getActiveElement } from '@instructure/ui-dom-utils';
30
30
  import { withStyle } from '@instructure/emotion';
31
- import { PaginationButton } from "./PaginationButton/index.js";
32
- import { PaginationArrowButton } from "./PaginationArrowButton/index.js";
33
- import { PaginationPageInput } from "./PaginationPageInput/index.js";
34
- import generateStyle from "./styles.js";
35
- import generateComponentTheme from "./theme.js";
36
- import { allowedProps } from "./props.js";
31
+ import { PaginationButton } from './PaginationButton/index.js';
32
+ import { PaginationArrowButton } from './PaginationArrowButton/index.js';
33
+ import { PaginationPageInput } from './PaginationPageInput/index.js';
34
+ import generateStyle from './styles.js';
35
+ import generateComponentTheme from './theme.js';
36
+ import { allowedProps } from './props.js';
37
37
  import { jsx as _jsx, jsxs as _jsxs } from "@emotion/react/jsx-runtime";
38
38
  /** This is an [].findIndex optimized to work on really big, but sparse, arrays */
39
39
  const fastFindIndex = (arr, fn) => Number(Object.keys(arr).find(k => fn(arr[Number(k)])));
@@ -56,7 +56,7 @@ category: components
56
56
  ---
57
57
  **/
58
58
  let Pagination = (_dec = withDeterministicId(), _dec2 = withStyle(generateStyle, generateComponentTheme), _dec(_class = _dec2(_class = class Pagination extends Component {
59
- static displayName = "Pagination";
59
+ static displayName = 'Pagination';
60
60
  static componentId = 'Pagination';
61
61
  static allowedProps = allowedProps;
62
62
  static defaultProps = {
@@ -27,7 +27,8 @@ import { IconButton } from '@instructure/ui-buttons/latest';
27
27
  import { PresentationContent } from '@instructure/ui-a11y-content';
28
28
  import { Tooltip } from '@instructure/ui-tooltip/latest';
29
29
  import { ChevronLeftInstUIIcon, ChevronRightInstUIIcon, ChevronsLeftInstUIIcon, ChevronsRightInstUIIcon, renderIconWithProps } from '@instructure/ui-icons';
30
- import { allowedProps } from "./props.js";
30
+ import { allowedProps } from './props.js';
31
+
31
32
  /**
32
33
  ---
33
34
  parent: Pagination
@@ -36,7 +37,7 @@ id: Pagination.Navigation
36
37
  **/
37
38
  import { jsx as _jsx } from "@emotion/react/jsx-runtime";
38
39
  class PaginationArrowButton extends Component {
39
- static displayName = "PaginationArrowButton";
40
+ static displayName = 'PaginationArrowButton';
40
41
  static componentId = 'Pagination.Navigation';
41
42
  static allowedProps = allowedProps;
42
43
  static defaultProps = {};
@@ -25,7 +25,7 @@
25
25
  import { Component } from 'react';
26
26
  import { BaseButton } from '@instructure/ui-buttons/latest';
27
27
  import { omitProps } from '@instructure/ui-react-utils';
28
- import { allowedProps } from "./props.js";
28
+ import { allowedProps } from './props.js';
29
29
  import { jsx as _jsx } from "@emotion/react/jsx-runtime";
30
30
  /**
31
31
  ---
@@ -35,7 +35,7 @@ id: Pagination.Page
35
35
  **/
36
36
 
37
37
  class PaginationButton extends Component {
38
- static displayName = "PaginationButton";
38
+ static displayName = 'PaginationButton';
39
39
  static componentId = 'Pagination.Page';
40
40
  static allowedProps = allowedProps;
41
41
  static defaultProps = {
@@ -28,8 +28,8 @@ import { withStyleNew } from '@instructure/emotion';
28
28
  import { Text } from '@instructure/ui-text/latest';
29
29
  import { NumberInput } from '@instructure/ui-number-input/latest';
30
30
  import { ScreenReaderContent } from '@instructure/ui-a11y-content';
31
- import generateStyle from "./styles.js";
32
- import { allowedProps } from "./props.js";
31
+ import generateStyle from './styles.js';
32
+ import { allowedProps } from './props.js';
33
33
  import { jsx as _jsx, jsxs as _jsxs } from "@emotion/react/jsx-runtime";
34
34
  /**
35
35
  ---
@@ -38,7 +38,7 @@ id: Pagination.PageInput
38
38
  ---
39
39
  **/
40
40
  let PaginationPageInput = (_dec = withStyleNew(generateStyle, 'PaginationPageInput'), _dec(_class = class PaginationPageInput extends Component {
41
- static displayName = "PaginationPageInput";
41
+ static displayName = 'PaginationPageInput';
42
42
  static componentId = 'Pagination.PageInput';
43
43
  static allowedProps = allowedProps;
44
44
  static defaultProps = {
@@ -29,11 +29,11 @@ import { omitProps, withDeterministicId } from '@instructure/ui-react-utils';
29
29
  import { hasVisibleChildren } from '@instructure/ui-a11y-utils';
30
30
  import { findTabbable, getActiveElement } from '@instructure/ui-dom-utils';
31
31
  import { withStyleNew } from '@instructure/emotion';
32
- import { PaginationButton } from "./PaginationButton/index.js";
33
- import { PaginationArrowButton } from "./PaginationArrowButton/index.js";
34
- import { PaginationPageInput } from "./PaginationPageInput/index.js";
35
- import generateStyle from "./styles.js";
36
- import { allowedProps } from "./props.js";
32
+ import { PaginationButton } from './PaginationButton/index.js';
33
+ import { PaginationArrowButton } from './PaginationArrowButton/index.js';
34
+ import { PaginationPageInput } from './PaginationPageInput/index.js';
35
+ import generateStyle from './styles.js';
36
+ import { allowedProps } from './props.js';
37
37
  import { jsx as _jsx, jsxs as _jsxs } from "@emotion/react/jsx-runtime";
38
38
  /** This is an [].findIndex optimized to work on really big, but sparse, arrays */
39
39
  const fastFindIndex = (arr, fn) => Number(Object.keys(arr).find(k => fn(arr[Number(k)])));
@@ -56,7 +56,7 @@ category: components
56
56
  ---
57
57
  **/
58
58
  let Pagination = (_dec = withDeterministicId(), _dec2 = withStyleNew(generateStyle), _dec(_class = _dec2(_class = class Pagination extends Component {
59
- static displayName = "Pagination";
59
+ static displayName = 'Pagination';
60
60
  static componentId = 'Pagination';
61
61
  static allowedProps = allowedProps;
62
62
  static defaultProps = {
package/es/exports/a.js CHANGED
@@ -21,4 +21,5 @@
21
21
  * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
22
22
  * SOFTWARE.
23
23
  */
24
- export { Pagination, PaginationButton } from "../Pagination/v1/index.js";
24
+
25
+ export { Pagination, PaginationButton } from '../Pagination/v1/index.js';
package/es/exports/b.js CHANGED
@@ -21,4 +21,5 @@
21
21
  * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
22
22
  * SOFTWARE.
23
23
  */
24
- export { Pagination, PaginationButton } from "../Pagination/v2/index.js";
24
+
25
+ export { Pagination, PaginationButton } from '../Pagination/v2/index.js';
@@ -12,7 +12,7 @@ var _IconArrowOpenStartSolid = require("@instructure/ui-icons/lib/generated/Icon
12
12
  var _IconArrowOpenEndSolid = require("@instructure/ui-icons/lib/generated/IconArrowOpenEndSolid.js");
13
13
  var _IconArrowDoubleStartSolid = require("@instructure/ui-icons/lib/generated/IconArrowDoubleStartSolid.js");
14
14
  var _IconArrowDoubleEndSolid = require("@instructure/ui-icons/lib/generated/IconArrowDoubleEndSolid.js");
15
- var _props = require("./props");
15
+ var _props = require("./props.js");
16
16
  var _jsxRuntime = require("@emotion/react/jsx-runtime");
17
17
  /*
18
18
  * The MIT License (MIT)
@@ -44,7 +44,7 @@ parent: Pagination
44
44
  id: Pagination.Navigation
45
45
  ---
46
46
  **/class PaginationArrowButton extends _react.Component {
47
- static displayName = "PaginationArrowButton";
47
+ static displayName = 'PaginationArrowButton';
48
48
  static componentId = 'Pagination.Navigation';
49
49
  static allowedProps = _props.allowedProps;
50
50
  static defaultProps = {};
@@ -7,7 +7,7 @@ exports.default = exports.PaginationButton = void 0;
7
7
  var _react = require("react");
8
8
  var _v11_ = require("@instructure/ui-buttons/v11_6");
9
9
  var _omitProps = require("@instructure/ui-react-utils/lib/omitProps.js");
10
- var _props = require("./props");
10
+ var _props = require("./props.js");
11
11
  var _jsxRuntime = require("@emotion/react/jsx-runtime");
12
12
  /*
13
13
  * The MIT License (MIT)
@@ -41,7 +41,7 @@ id: Pagination.Page
41
41
  **/
42
42
 
43
43
  class PaginationButton extends _react.Component {
44
- static displayName = "PaginationButton";
44
+ static displayName = 'PaginationButton';
45
45
  static componentId = 'Pagination.Page';
46
46
  static allowedProps = _props.allowedProps;
47
47
  static defaultProps = {
@@ -9,9 +9,9 @@ var _react = require("react");
9
9
  var _emotion = require("@instructure/emotion");
10
10
  var _v11_ = require("@instructure/ui-number-input/v11_6");
11
11
  var _ScreenReaderContent = require("@instructure/ui-a11y-content/lib/ScreenReaderContent");
12
- var _styles = _interopRequireDefault(require("./styles"));
13
- var _theme = _interopRequireDefault(require("./theme"));
14
- var _props = require("./props");
12
+ var _styles = _interopRequireDefault(require("./styles.js"));
13
+ var _theme = _interopRequireDefault(require("./theme.js"));
14
+ var _props = require("./props.js");
15
15
  var _jsxRuntime = require("@emotion/react/jsx-runtime");
16
16
  var _dec, _class;
17
17
  /*
@@ -44,7 +44,7 @@ id: Pagination.PageInput
44
44
  ---
45
45
  **/
46
46
  let PaginationPageInput = exports.PaginationPageInput = (_dec = (0, _emotion.withStyle)(_styles.default, _theme.default), _dec(_class = class PaginationPageInput extends _react.Component {
47
- static displayName = "PaginationPageInput";
47
+ static displayName = 'PaginationPageInput';
48
48
  static componentId = 'Pagination.PageInput';
49
49
  static allowedProps = _props.allowedProps;
50
50
  static defaultProps = {
@@ -8,7 +8,7 @@ exports.Pagination = void 0;
8
8
  Object.defineProperty(exports, "PaginationButton", {
9
9
  enumerable: true,
10
10
  get: function () {
11
- return _PaginationButton.PaginationButton;
11
+ return _index.PaginationButton;
12
12
  }
13
13
  });
14
14
  exports.default = void 0;
@@ -20,12 +20,12 @@ var _hasVisibleChildren = require("@instructure/ui-a11y-utils/lib/hasVisibleChil
20
20
  var _findTabbable = require("@instructure/ui-dom-utils/lib/findTabbable.js");
21
21
  var _getActiveElement = require("@instructure/ui-dom-utils/lib/getActiveElement.js");
22
22
  var _emotion = require("@instructure/emotion");
23
- var _PaginationButton = require("./PaginationButton");
24
- var _PaginationArrowButton = require("./PaginationArrowButton");
25
- var _PaginationPageInput = require("./PaginationPageInput");
26
- var _styles = _interopRequireDefault(require("./styles"));
27
- var _theme = _interopRequireDefault(require("./theme"));
28
- var _props = require("./props");
23
+ var _index = require("./PaginationButton/index.js");
24
+ var _index2 = require("./PaginationArrowButton/index.js");
25
+ var _index3 = require("./PaginationPageInput/index.js");
26
+ var _styles = _interopRequireDefault(require("./styles.js"));
27
+ var _theme = _interopRequireDefault(require("./theme.js"));
28
+ var _props = require("./props.js");
29
29
  var _jsxRuntime = require("@emotion/react/jsx-runtime");
30
30
  var _dec, _dec2, _class;
31
31
  /*
@@ -72,7 +72,7 @@ category: components
72
72
  ---
73
73
  **/
74
74
  let Pagination = exports.Pagination = (_dec = (0, _withDeterministicId.withDeterministicId)(), _dec2 = (0, _emotion.withStyle)(_styles.default, _theme.default), _dec(_class = _dec2(_class = class Pagination extends _react.Component {
75
- static displayName = "Pagination";
75
+ static displayName = 'Pagination';
76
76
  static componentId = 'Pagination';
77
77
  static allowedProps = _props.allowedProps;
78
78
  static defaultProps = {
@@ -92,8 +92,8 @@ let Pagination = exports.Pagination = (_dec = (0, _withDeterministicId.withDeter
92
92
  renderPageIndicator: page => page,
93
93
  margin: 'space8'
94
94
  };
95
- static Page = _PaginationButton.PaginationButton;
96
- static Navigation = _PaginationArrowButton.PaginationArrowButton;
95
+ static Page = _index.PaginationButton;
96
+ static Navigation = _index2.PaginationArrowButton;
97
97
  _labelId;
98
98
  _firstButton = null;
99
99
  _prevButton = null;
@@ -209,7 +209,7 @@ let Pagination = exports.Pagination = (_dec = (0, _withDeterministicId.withDeter
209
209
  currentPage,
210
210
  totalPageNumber
211
211
  } = this.props;
212
- return (0, _jsxRuntime.jsx)(_PaginationPageInput.PaginationPageInput, {
212
+ return (0, _jsxRuntime.jsx)(_index3.PaginationPageInput, {
213
213
  numberOfPages: totalPageNumber,
214
214
  currentPageIndex: currentPage - 1,
215
215
  onChange: (_e, nextPageIndex) => this.props.onPageChange?.(nextPageIndex + 1, currentPage),
@@ -221,7 +221,7 @@ let Pagination = exports.Pagination = (_dec = (0, _withDeterministicId.withDeter
221
221
  };
222
222
  renderPageInput(currentPageIndex) {
223
223
  if (!this.props.children) return this.renderDefaultPageInput();
224
- return (0, _jsxRuntime.jsx)(_PaginationPageInput.PaginationPageInput, {
224
+ return (0, _jsxRuntime.jsx)(_index3.PaginationPageInput, {
225
225
  numberOfPages: this.childPages.length,
226
226
  currentPageIndex: currentPageIndex,
227
227
  onChange: this.handleInputChange.bind(this),
@@ -424,7 +424,7 @@ let Pagination = exports.Pagination = (_dec = (0, _withDeterministicId.withDeter
424
424
  this.handleNavigation(totalPageNumber, currentPage);
425
425
  }
426
426
  };
427
- return shouldEnableIcon || this.showDisabledButtons ? (0, _jsxRuntime.jsx)(_PaginationArrowButton.PaginationArrowButton, {
427
+ return shouldEnableIcon || this.showDisabledButtons ? (0, _jsxRuntime.jsx)(_index2.PaginationArrowButton, {
428
428
  direction: direction,
429
429
  "data-direction": direction,
430
430
  label: label,
@@ -454,7 +454,7 @@ let Pagination = exports.Pagination = (_dec = (0, _withDeterministicId.withDeter
454
454
  const page = childPages[pageIndex];
455
455
  const disabled = page?.props?.disabled || this.props.disabled || !shouldEnableIcon;
456
456
  const onClick = page?.props?.onClick;
457
- return shouldEnableIcon || this.showDisabledButtons ? (0, _jsxRuntime.jsx)(_PaginationArrowButton.PaginationArrowButton, {
457
+ return shouldEnableIcon || this.showDisabledButtons ? (0, _jsxRuntime.jsx)(_index2.PaginationArrowButton, {
458
458
  direction: direction,
459
459
  "data-direction": direction,
460
460
  label: label,
@@ -9,7 +9,7 @@ var _latest = require("@instructure/ui-buttons/latest");
9
9
  var _PresentationContent = require("@instructure/ui-a11y-content/lib/PresentationContent");
10
10
  var _latest2 = require("@instructure/ui-tooltip/latest");
11
11
  var _uiIcons = require("@instructure/ui-icons");
12
- var _props = require("./props");
12
+ var _props = require("./props.js");
13
13
  var _jsxRuntime = require("@emotion/react/jsx-runtime");
14
14
  /*
15
15
  * The MIT License (MIT)
@@ -41,7 +41,7 @@ parent: Pagination
41
41
  id: Pagination.Navigation
42
42
  ---
43
43
  **/class PaginationArrowButton extends _react.Component {
44
- static displayName = "PaginationArrowButton";
44
+ static displayName = 'PaginationArrowButton';
45
45
  static componentId = 'Pagination.Navigation';
46
46
  static allowedProps = _props.allowedProps;
47
47
  static defaultProps = {};
@@ -7,7 +7,7 @@ exports.default = exports.PaginationButton = void 0;
7
7
  var _react = require("react");
8
8
  var _latest = require("@instructure/ui-buttons/latest");
9
9
  var _omitProps = require("@instructure/ui-react-utils/lib/omitProps.js");
10
- var _props = require("./props");
10
+ var _props = require("./props.js");
11
11
  var _jsxRuntime = require("@emotion/react/jsx-runtime");
12
12
  /*
13
13
  * The MIT License (MIT)
@@ -41,7 +41,7 @@ id: Pagination.Page
41
41
  **/
42
42
 
43
43
  class PaginationButton extends _react.Component {
44
- static displayName = "PaginationButton";
44
+ static displayName = 'PaginationButton';
45
45
  static componentId = 'Pagination.Page';
46
46
  static allowedProps = _props.allowedProps;
47
47
  static defaultProps = {
@@ -10,8 +10,8 @@ var _emotion = require("@instructure/emotion");
10
10
  var _latest = require("@instructure/ui-text/latest");
11
11
  var _latest2 = require("@instructure/ui-number-input/latest");
12
12
  var _ScreenReaderContent = require("@instructure/ui-a11y-content/lib/ScreenReaderContent");
13
- var _styles = _interopRequireDefault(require("./styles"));
14
- var _props = require("./props");
13
+ var _styles = _interopRequireDefault(require("./styles.js"));
14
+ var _props = require("./props.js");
15
15
  var _jsxRuntime = require("@emotion/react/jsx-runtime");
16
16
  var _dec, _class;
17
17
  /*
@@ -44,7 +44,7 @@ id: Pagination.PageInput
44
44
  ---
45
45
  **/
46
46
  let PaginationPageInput = exports.PaginationPageInput = (_dec = (0, _emotion.withStyleNew)(_styles.default, 'PaginationPageInput'), _dec(_class = class PaginationPageInput extends _react.Component {
47
- static displayName = "PaginationPageInput";
47
+ static displayName = 'PaginationPageInput';
48
48
  static componentId = 'Pagination.PageInput';
49
49
  static allowedProps = _props.allowedProps;
50
50
  static defaultProps = {
@@ -8,7 +8,7 @@ exports.Pagination = void 0;
8
8
  Object.defineProperty(exports, "PaginationButton", {
9
9
  enumerable: true,
10
10
  get: function () {
11
- return _PaginationButton.PaginationButton;
11
+ return _index.PaginationButton;
12
12
  }
13
13
  });
14
14
  exports.default = void 0;
@@ -21,11 +21,11 @@ var _hasVisibleChildren = require("@instructure/ui-a11y-utils/lib/hasVisibleChil
21
21
  var _findTabbable = require("@instructure/ui-dom-utils/lib/findTabbable.js");
22
22
  var _getActiveElement = require("@instructure/ui-dom-utils/lib/getActiveElement.js");
23
23
  var _emotion = require("@instructure/emotion");
24
- var _PaginationButton = require("./PaginationButton");
25
- var _PaginationArrowButton = require("./PaginationArrowButton");
26
- var _PaginationPageInput = require("./PaginationPageInput");
27
- var _styles = _interopRequireDefault(require("./styles"));
28
- var _props = require("./props");
24
+ var _index = require("./PaginationButton/index.js");
25
+ var _index2 = require("./PaginationArrowButton/index.js");
26
+ var _index3 = require("./PaginationPageInput/index.js");
27
+ var _styles = _interopRequireDefault(require("./styles.js"));
28
+ var _props = require("./props.js");
29
29
  var _jsxRuntime = require("@emotion/react/jsx-runtime");
30
30
  var _dec, _dec2, _class;
31
31
  /*
@@ -72,7 +72,7 @@ category: components
72
72
  ---
73
73
  **/
74
74
  let Pagination = exports.Pagination = (_dec = (0, _withDeterministicId.withDeterministicId)(), _dec2 = (0, _emotion.withStyleNew)(_styles.default), _dec(_class = _dec2(_class = class Pagination extends _react.Component {
75
- static displayName = "Pagination";
75
+ static displayName = 'Pagination';
76
76
  static componentId = 'Pagination';
77
77
  static allowedProps = _props.allowedProps;
78
78
  static defaultProps = {
@@ -92,9 +92,9 @@ let Pagination = exports.Pagination = (_dec = (0, _withDeterministicId.withDeter
92
92
  renderPageIndicator: page => page,
93
93
  margin: 'space8'
94
94
  };
95
- static Page = _PaginationButton.PaginationButton;
96
- static Navigation = _PaginationArrowButton.PaginationArrowButton;
97
- static PageInput = _PaginationPageInput.PaginationPageInput;
95
+ static Page = _index.PaginationButton;
96
+ static Navigation = _index2.PaginationArrowButton;
97
+ static PageInput = _index3.PaginationPageInput;
98
98
  _labelId;
99
99
  _firstButton = null;
100
100
  _prevButton = null;
@@ -209,7 +209,7 @@ let Pagination = exports.Pagination = (_dec = (0, _withDeterministicId.withDeter
209
209
  currentPage,
210
210
  totalPageNumber
211
211
  } = this.props;
212
- return (0, _jsxRuntime.jsx)(_PaginationPageInput.PaginationPageInput, {
212
+ return (0, _jsxRuntime.jsx)(_index3.PaginationPageInput, {
213
213
  numberOfPages: totalPageNumber,
214
214
  currentPageIndex: currentPage - 1,
215
215
  onChange: (_e, nextPageIndex) => this.props.onPageChange?.(nextPageIndex + 1, currentPage),
@@ -221,7 +221,7 @@ let Pagination = exports.Pagination = (_dec = (0, _withDeterministicId.withDeter
221
221
  };
222
222
  renderPageInput(currentPageIndex) {
223
223
  if (!this.props.children) return this.renderDefaultPageInput();
224
- return (0, _jsxRuntime.jsx)(_PaginationPageInput.PaginationPageInput, {
224
+ return (0, _jsxRuntime.jsx)(_index3.PaginationPageInput, {
225
225
  numberOfPages: this.childPages.length,
226
226
  currentPageIndex: currentPageIndex,
227
227
  onChange: this.handleInputChange.bind(this),
@@ -432,7 +432,7 @@ let Pagination = exports.Pagination = (_dec = (0, _withDeterministicId.withDeter
432
432
  this.handleNavigation(totalPageNumber, currentPage);
433
433
  }
434
434
  };
435
- return shouldEnableIcon || this.showDisabledButtons ? (0, _jsxRuntime.jsx)(_PaginationArrowButton.PaginationArrowButton, {
435
+ return shouldEnableIcon || this.showDisabledButtons ? (0, _jsxRuntime.jsx)(_index2.PaginationArrowButton, {
436
436
  direction: direction,
437
437
  "data-direction": direction,
438
438
  label: label,
@@ -462,7 +462,7 @@ let Pagination = exports.Pagination = (_dec = (0, _withDeterministicId.withDeter
462
462
  const page = childPages[pageIndex];
463
463
  const disabled = page?.props?.disabled || this.props.disabled || !shouldEnableIcon;
464
464
  const onClick = page?.props?.onClick;
465
- return shouldEnableIcon || this.showDisabledButtons ? (0, _jsxRuntime.jsx)(_PaginationArrowButton.PaginationArrowButton, {
465
+ return shouldEnableIcon || this.showDisabledButtons ? (0, _jsxRuntime.jsx)(_index2.PaginationArrowButton, {
466
466
  direction: direction,
467
467
  "data-direction": direction,
468
468
  label: label,
package/lib/exports/a.js CHANGED
@@ -6,13 +6,13 @@ Object.defineProperty(exports, "__esModule", {
6
6
  Object.defineProperty(exports, "Pagination", {
7
7
  enumerable: true,
8
8
  get: function () {
9
- return _v.Pagination;
9
+ return _index.Pagination;
10
10
  }
11
11
  });
12
12
  Object.defineProperty(exports, "PaginationButton", {
13
13
  enumerable: true,
14
14
  get: function () {
15
- return _v.PaginationButton;
15
+ return _index.PaginationButton;
16
16
  }
17
17
  });
18
- var _v = require("../Pagination/v1");
18
+ var _index = require("../Pagination/v1/index.js");
package/lib/exports/b.js CHANGED
@@ -6,13 +6,13 @@ Object.defineProperty(exports, "__esModule", {
6
6
  Object.defineProperty(exports, "Pagination", {
7
7
  enumerable: true,
8
8
  get: function () {
9
- return _v.Pagination;
9
+ return _index.Pagination;
10
10
  }
11
11
  });
12
12
  Object.defineProperty(exports, "PaginationButton", {
13
13
  enumerable: true,
14
14
  get: function () {
15
- return _v.PaginationButton;
15
+ return _index.PaginationButton;
16
16
  }
17
17
  });
18
- var _v = require("../Pagination/v2");
18
+ var _index = require("../Pagination/v2/index.js");
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@instructure/ui-pagination",
3
- "version": "11.7.4-snapshot-14",
3
+ "version": "11.7.4-snapshot-49",
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",
@@ -15,30 +15,30 @@
15
15
  "license": "MIT",
16
16
  "dependencies": {
17
17
  "@babel/runtime": "^7.29.2",
18
- "@instructure/emotion": "11.7.4-snapshot-14",
19
- "@instructure/shared-types": "11.7.4-snapshot-14",
20
- "@instructure/ui-a11y-utils": "11.7.4-snapshot-14",
21
- "@instructure/ui-a11y-content": "11.7.4-snapshot-14",
22
- "@instructure/ui-buttons": "11.7.4-snapshot-14",
23
- "@instructure/ui-dom-utils": "11.7.4-snapshot-14",
24
- "@instructure/ui-icons": "11.7.4-snapshot-14",
25
- "@instructure/ui-number-input": "11.7.4-snapshot-14",
26
- "@instructure/ui-portal": "11.7.4-snapshot-14",
27
- "@instructure/ui-react-utils": "11.7.4-snapshot-14",
28
- "@instructure/ui-themes": "11.7.4-snapshot-14",
29
- "@instructure/ui-utils": "11.7.4-snapshot-14",
30
- "@instructure/ui-view": "11.7.4-snapshot-14",
31
- "@instructure/ui-text": "11.7.4-snapshot-14",
32
- "@instructure/ui-tooltip": "11.7.4-snapshot-14",
33
- "@instructure/uid": "11.7.4-snapshot-14"
18
+ "@instructure/emotion": "11.7.4-snapshot-49",
19
+ "@instructure/shared-types": "11.7.4-snapshot-49",
20
+ "@instructure/ui-a11y-content": "11.7.4-snapshot-49",
21
+ "@instructure/ui-a11y-utils": "11.7.4-snapshot-49",
22
+ "@instructure/ui-buttons": "11.7.4-snapshot-49",
23
+ "@instructure/ui-dom-utils": "11.7.4-snapshot-49",
24
+ "@instructure/ui-icons": "11.7.4-snapshot-49",
25
+ "@instructure/ui-portal": "11.7.4-snapshot-49",
26
+ "@instructure/ui-react-utils": "11.7.4-snapshot-49",
27
+ "@instructure/ui-number-input": "11.7.4-snapshot-49",
28
+ "@instructure/ui-text": "11.7.4-snapshot-49",
29
+ "@instructure/ui-themes": "11.7.4-snapshot-49",
30
+ "@instructure/ui-tooltip": "11.7.4-snapshot-49",
31
+ "@instructure/ui-utils": "11.7.4-snapshot-49",
32
+ "@instructure/ui-view": "11.7.4-snapshot-49",
33
+ "@instructure/uid": "11.7.4-snapshot-49"
34
34
  },
35
35
  "devDependencies": {
36
36
  "@testing-library/jest-dom": "^6.6.3",
37
37
  "@testing-library/react": "15.0.7",
38
38
  "@testing-library/user-event": "^14.6.1",
39
39
  "vitest": "^3.2.2",
40
- "@instructure/ui-axe-check": "11.7.4-snapshot-14",
41
- "@instructure/ui-babel-preset": "11.7.4-snapshot-14"
40
+ "@instructure/ui-axe-check": "11.7.4-snapshot-49",
41
+ "@instructure/ui-babel-preset": "11.7.4-snapshot-49"
42
42
  },
43
43
  "peerDependencies": {
44
44
  "react": ">=18 <=19"
@@ -35,7 +35,7 @@ import {
35
35
  } from '@instructure/ui-icons'
36
36
 
37
37
  import type { PaginationNavigationProps } from './props'
38
- import { allowedProps } from './props'
38
+ import { allowedProps } from './props.js'
39
39
 
40
40
  /**
41
41
  ---
@@ -44,6 +44,7 @@ id: Pagination.Navigation
44
44
  ---
45
45
  **/
46
46
  class PaginationArrowButton extends Component<PaginationNavigationProps> {
47
+ static displayName = 'PaginationArrowButton'
47
48
  static readonly componentId = 'Pagination.Navigation'
48
49
 
49
50
  static allowedProps = allowedProps
@@ -27,7 +27,7 @@ import { Component } from 'react'
27
27
  import { BaseButton } from '@instructure/ui-buttons/v11_6'
28
28
  import { omitProps } from '@instructure/ui-react-utils'
29
29
 
30
- import { allowedProps } from './props'
30
+ import { allowedProps } from './props.js'
31
31
  import type { PaginationPageProps } from './props'
32
32
 
33
33
  /**
@@ -38,6 +38,7 @@ id: Pagination.Page
38
38
  **/
39
39
 
40
40
  class PaginationButton extends Component<PaginationPageProps> {
41
+ static displayName = 'PaginationButton'
41
42
  static readonly componentId = 'Pagination.Page'
42
43
 
43
44
  static allowedProps = allowedProps