@instructure/ui-pagination 11.7.8 → 11.7.9-pr-snapshot-1792147648392

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 (53) hide show
  1. package/CHANGELOG.md +13 -0
  2. package/es/Pagination/v1/PaginationArrowButton/index.js +66 -90
  3. package/es/Pagination/v1/PaginationArrowButton/props.js +5 -29
  4. package/es/Pagination/v1/PaginationButton/index.js +46 -67
  5. package/es/Pagination/v1/PaginationButton/props.js +5 -28
  6. package/es/Pagination/v1/PaginationPageInput/index.js +141 -186
  7. package/es/Pagination/v1/PaginationPageInput/props.js +10 -26
  8. package/es/Pagination/v1/PaginationPageInput/styles.js +20 -54
  9. package/es/Pagination/v1/PaginationPageInput/theme.js +11 -43
  10. package/es/Pagination/v1/index.js +389 -443
  11. package/es/Pagination/v1/props.js +29 -26
  12. package/es/Pagination/v1/styles.js +21 -55
  13. package/es/Pagination/v1/theme.js +9 -40
  14. package/es/Pagination/v2/PaginationArrowButton/index.js +71 -95
  15. package/es/Pagination/v2/PaginationArrowButton/props.js +5 -29
  16. package/es/Pagination/v2/PaginationButton/index.js +46 -67
  17. package/es/Pagination/v2/PaginationButton/props.js +5 -28
  18. package/es/Pagination/v2/PaginationPageInput/index.js +147 -190
  19. package/es/Pagination/v2/PaginationPageInput/props.js +10 -26
  20. package/es/Pagination/v2/PaginationPageInput/styles.js +20 -55
  21. package/es/Pagination/v2/index.js +395 -450
  22. package/es/Pagination/v2/props.js +29 -26
  23. package/es/Pagination/v2/styles.js +22 -54
  24. package/es/exports/a.js +1 -25
  25. package/es/exports/b.js +1 -25
  26. package/package.json +22 -28
  27. package/tsconfig.build.json +0 -1
  28. package/tsconfig.build.tsbuildinfo +1 -1
  29. package/lib/Pagination/v1/PaginationArrowButton/index.js +0 -108
  30. package/lib/Pagination/v1/PaginationArrowButton/props.js +0 -35
  31. package/lib/Pagination/v1/PaginationButton/index.js +0 -80
  32. package/lib/Pagination/v1/PaginationButton/props.js +0 -34
  33. package/lib/Pagination/v1/PaginationPageInput/index.js +0 -199
  34. package/lib/Pagination/v1/PaginationPageInput/props.js +0 -31
  35. package/lib/Pagination/v1/PaginationPageInput/styles.js +0 -61
  36. package/lib/Pagination/v1/PaginationPageInput/theme.js +0 -50
  37. package/lib/Pagination/v1/index.js +0 -492
  38. package/lib/Pagination/v1/props.js +0 -31
  39. package/lib/Pagination/v1/styles.js +0 -62
  40. package/lib/Pagination/v1/theme.js +0 -47
  41. package/lib/Pagination/v2/PaginationArrowButton/index.js +0 -110
  42. package/lib/Pagination/v2/PaginationArrowButton/props.js +0 -35
  43. package/lib/Pagination/v2/PaginationButton/index.js +0 -80
  44. package/lib/Pagination/v2/PaginationButton/props.js +0 -34
  45. package/lib/Pagination/v2/PaginationPageInput/index.js +0 -203
  46. package/lib/Pagination/v2/PaginationPageInput/props.js +0 -31
  47. package/lib/Pagination/v2/PaginationPageInput/styles.js +0 -62
  48. package/lib/Pagination/v2/index.js +0 -499
  49. package/lib/Pagination/v2/props.js +0 -31
  50. package/lib/Pagination/v2/styles.js +0 -61
  51. package/lib/exports/a.js +0 -18
  52. package/lib/exports/b.js +0 -18
  53. package/lib/package.json +0 -1
package/CHANGELOG.md CHANGED
@@ -3,6 +3,19 @@
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.9-pr-snapshot-1792147648392](https://github.com/instructure/instructure-ui/compare/v11.7.8...v11.7.9-pr-snapshot-1792147648392) (2026-10-16)
7
+
8
+ ### Build System
9
+
10
+ * **many:** replace babel with swc ([7e36c54](https://github.com/instructure/instructure-ui/commit/7e36c54d240b4fa483801c03ab18e7f860f561e2))
11
+
12
+ ### BREAKING CHANGES
13
+
14
+ * **many:** `@instructure/ui-babel-preset` and
15
+ `@instructure/browserslist-config-instui` are removed and will no longer be
16
+ published. Packages depend on `@swc/helpers` instead of `@babel/runtime`.
17
+
18
+
6
19
  ## [11.7.8](https://github.com/instructure/instructure-ui/compare/v11.7.7...v11.7.8) (2026-10-02)
7
20
 
8
21
  **Note:** Version bump only for package @instructure/ui-pagination
@@ -1,101 +1,77 @@
1
- /*
2
- * The MIT License (MIT)
3
- *
4
- * Copyright (c) 2015 - present Instructure, Inc.
5
- *
6
- * Permission is hereby granted, free of charge, to any person obtaining a copy
7
- * of this software and associated documentation files (the "Software"), to deal
8
- * in the Software without restriction, including without limitation the rights
9
- * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
10
- * copies of the Software, and to permit persons to whom the Software is
11
- * furnished to do so, subject to the following conditions:
12
- *
13
- * The above copyright notice and this permission notice shall be included in all
14
- * copies or substantial portions of the Software.
15
- *
16
- * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
17
- * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
18
- * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
19
- * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
20
- * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
21
- * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
22
- * SOFTWARE.
23
- */
24
-
1
+ import { jsx as _jsx } from "@emotion/react/jsx-runtime";
25
2
  import { Component } from 'react';
26
3
  import { IconButton } from '@instructure/ui-buttons/v11_6';
27
4
  import { PresentationContent } from '@instructure/ui-a11y-content';
28
5
  import { Tooltip } from '@instructure/ui-tooltip/v11_6';
29
6
  import { IconArrowOpenStartSolid, IconArrowOpenEndSolid, IconArrowDoubleStartSolid, IconArrowDoubleEndSolid } from '@instructure/ui-icons';
30
7
  import { allowedProps } from './props.js';
31
-
32
- /**
33
- ---
34
- parent: Pagination
35
- id: Pagination.Navigation
36
- ---
37
- **/
38
- import { jsx as _jsx } from "@emotion/react/jsx-runtime";
39
8
  class PaginationArrowButton extends Component {
40
- static displayName = 'PaginationArrowButton';
41
- static componentId = 'Pagination.Navigation';
42
- static allowedProps = allowedProps;
43
- static defaultProps = {};
44
- ref = null;
45
- handleRef = el => {
46
- this.ref = el;
47
- };
48
- get margin() {
49
- switch (this.props.direction) {
50
- case 'first':
51
- return '0 xx-small 0 0';
52
- case 'last':
53
- return '0 0 0 xx-small';
54
- default:
55
- return undefined;
9
+ static{
10
+ this.displayName = 'PaginationArrowButton';
11
+ }
12
+ static{
13
+ this.componentId = 'Pagination.Navigation';
14
+ }
15
+ static{
16
+ this.allowedProps = allowedProps;
17
+ }
18
+ static{
19
+ this.defaultProps = {};
20
+ }
21
+ get margin() {
22
+ switch(this.props.direction){
23
+ case 'first':
24
+ return '0 xx-small 0 0';
25
+ case 'last':
26
+ return '0 0 0 xx-small';
27
+ default:
28
+ return undefined;
29
+ }
30
+ }
31
+ get Icon() {
32
+ switch(this.props.direction){
33
+ case 'first':
34
+ return IconArrowDoubleStartSolid;
35
+ case 'prev':
36
+ return IconArrowOpenStartSolid;
37
+ case 'next':
38
+ return IconArrowOpenEndSolid;
39
+ case 'last':
40
+ return IconArrowDoubleEndSolid;
41
+ default:
42
+ return null;
43
+ }
44
+ }
45
+ render() {
46
+ const { label, direction, buttonRef, ...props } = this.props;
47
+ return /*#__PURE__*/ _jsx(Tooltip, {
48
+ elementRef: this.handleRef,
49
+ on: [
50
+ 'hover',
51
+ 'focus'
52
+ ],
53
+ renderTip: /*#__PURE__*/ _jsx(PresentationContent, {
54
+ children: label
55
+ }),
56
+ children: /*#__PURE__*/ _jsx(IconButton, {
57
+ ...props,
58
+ size: "small",
59
+ withBackground: false,
60
+ withBorder: false,
61
+ screenReaderLabel: label,
62
+ rel: props.href || props.to ? direction : undefined,
63
+ elementRef: buttonRef,
64
+ margin: this.margin,
65
+ "data-cid": "PaginationArrowButton",
66
+ children: this.Icon
67
+ })
68
+ });
56
69
  }
57
- }
58
- get Icon() {
59
- switch (this.props.direction) {
60
- case 'first':
61
- return IconArrowDoubleStartSolid;
62
- case 'prev':
63
- return IconArrowOpenStartSolid;
64
- case 'next':
65
- return IconArrowOpenEndSolid;
66
- case 'last':
67
- return IconArrowDoubleEndSolid;
68
- default:
69
- return null;
70
+ constructor(...args){
71
+ super(...args), this.ref = null, this.handleRef = (el)=>{
72
+ this.ref = el;
73
+ };
70
74
  }
71
- }
72
- render() {
73
- const {
74
- label,
75
- direction,
76
- buttonRef,
77
- ...props
78
- } = this.props;
79
- return _jsx(Tooltip, {
80
- elementRef: this.handleRef,
81
- on: ['hover', 'focus'],
82
- renderTip: _jsx(PresentationContent, {
83
- children: label
84
- }),
85
- children: _jsx(IconButton, {
86
- ...props,
87
- size: "small",
88
- withBackground: false,
89
- withBorder: false,
90
- screenReaderLabel: label,
91
- rel: props.href || props.to ? direction : undefined,
92
- elementRef: buttonRef,
93
- margin: this.margin,
94
- "data-cid": "PaginationArrowButton",
95
- children: this.Icon
96
- })
97
- });
98
- }
99
75
  }
100
76
  export default PaginationArrowButton;
101
- export { PaginationArrowButton };
77
+ export { PaginationArrowButton };
@@ -1,30 +1,6 @@
1
- /*
2
- * The MIT License (MIT)
3
- *
4
- * Copyright (c) 2015 - present Instructure, Inc.
5
- *
6
- * Permission is hereby granted, free of charge, to any person obtaining a copy
7
- * of this software and associated documentation files (the "Software"), to deal
8
- * in the Software without restriction, including without limitation the rights
9
- * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
10
- * copies of the Software, and to permit persons to whom the Software is
11
- * furnished to do so, subject to the following conditions:
12
- *
13
- * The above copyright notice and this permission notice shall be included in all
14
- * copies or substantial portions of the Software.
15
- *
16
- * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
17
- * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
18
- * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
19
- * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
20
- * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
21
- * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
22
- * SOFTWARE.
23
- */
24
-
25
- const allowedProps = ['direction', 'label', 'buttonRef'
26
-
27
- // we don't want to pass onClick
28
- // 'onClick'
1
+ const allowedProps = [
2
+ 'direction',
3
+ 'label',
4
+ 'buttonRef'
29
5
  ];
30
- export { allowedProps };
6
+ export { allowedProps };
@@ -1,74 +1,53 @@
1
- /*
2
- * The MIT License (MIT)
3
- *
4
- * Copyright (c) 2015 - present Instructure, Inc.
5
- *
6
- * Permission is hereby granted, free of charge, to any person obtaining a copy
7
- * of this software and associated documentation files (the "Software"), to deal
8
- * in the Software without restriction, including without limitation the rights
9
- * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
10
- * copies of the Software, and to permit persons to whom the Software is
11
- * furnished to do so, subject to the following conditions:
12
- *
13
- * The above copyright notice and this permission notice shall be included in all
14
- * copies or substantial portions of the Software.
15
- *
16
- * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
17
- * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
18
- * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
19
- * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
20
- * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
21
- * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
22
- * SOFTWARE.
23
- */
24
-
1
+ import { jsx as _jsx } from "@emotion/react/jsx-runtime";
25
2
  import { Component } from 'react';
26
3
  import { BaseButton } from '@instructure/ui-buttons/v11_6';
27
4
  import { omitProps } from '@instructure/ui-react-utils';
28
5
  import { allowedProps } from './props.js';
29
- import { jsx as _jsx } from "@emotion/react/jsx-runtime";
30
- /**
31
- ---
32
- parent: Pagination
33
- id: Pagination.Page
34
- ---
35
- **/
36
-
37
6
  class PaginationButton extends Component {
38
- static displayName = 'PaginationButton';
39
- static componentId = 'Pagination.Page';
40
- static allowedProps = allowedProps;
41
- static defaultProps = {
42
- current: false
43
- };
44
- ref = null;
45
- handleRef = el => {
46
- this.ref = el;
47
- };
48
- render() {
49
- const exclude = this.props.current ? ['onClick', 'href'] : [];
50
- const props = omitProps(this.props, PaginationButton.allowedProps, exclude);
51
-
52
- // wrapped in an unstyled <li> for better a11y
53
- return _jsx("li", {
54
- style: {
55
- all: 'unset'
56
- },
57
- children: _jsx(BaseButton, {
58
- color: "primary",
59
- "data-cid": "PaginationButton",
60
- withBackground: this.props.current,
61
- withBorder: this.props.current,
62
- ...props,
63
- "aria-current": this.props.current ? 'page' : undefined,
64
- elementRef: this.handleRef,
65
- ...(this.props.screenReaderLabel ? {
66
- 'aria-label': this.props.screenReaderLabel
67
- } : {}),
68
- children: this.props.children
69
- })
70
- });
71
- }
7
+ static{
8
+ this.displayName = 'PaginationButton';
9
+ }
10
+ static{
11
+ this.componentId = 'Pagination.Page';
12
+ }
13
+ static{
14
+ this.allowedProps = allowedProps;
15
+ }
16
+ static{
17
+ this.defaultProps = {
18
+ current: false
19
+ };
20
+ }
21
+ render() {
22
+ const exclude = this.props.current ? [
23
+ 'onClick',
24
+ 'href'
25
+ ] : [];
26
+ const props = omitProps(this.props, PaginationButton.allowedProps, exclude);
27
+ return /*#__PURE__*/ _jsx("li", {
28
+ style: {
29
+ all: 'unset'
30
+ },
31
+ children: /*#__PURE__*/ _jsx(BaseButton, {
32
+ color: "primary",
33
+ "data-cid": "PaginationButton",
34
+ withBackground: this.props.current,
35
+ withBorder: this.props.current,
36
+ ...props,
37
+ "aria-current": this.props.current ? 'page' : undefined,
38
+ elementRef: this.handleRef,
39
+ ...this.props.screenReaderLabel ? {
40
+ 'aria-label': this.props.screenReaderLabel
41
+ } : {},
42
+ children: this.props.children
43
+ })
44
+ });
45
+ }
46
+ constructor(...args){
47
+ super(...args), this.ref = null, this.handleRef = (el)=>{
48
+ this.ref = el;
49
+ };
50
+ }
72
51
  }
73
52
  export default PaginationButton;
74
- export { PaginationButton };
53
+ export { PaginationButton };
@@ -1,29 +1,6 @@
1
- /*
2
- * The MIT License (MIT)
3
- *
4
- * Copyright (c) 2015 - present Instructure, Inc.
5
- *
6
- * Permission is hereby granted, free of charge, to any person obtaining a copy
7
- * of this software and associated documentation files (the "Software"), to deal
8
- * in the Software without restriction, including without limitation the rights
9
- * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
10
- * copies of the Software, and to permit persons to whom the Software is
11
- * furnished to do so, subject to the following conditions:
12
- *
13
- * The above copyright notice and this permission notice shall be included in all
14
- * copies or substantial portions of the Software.
15
- *
16
- * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
17
- * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
18
- * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
19
- * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
20
- * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
21
- * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
22
- * SOFTWARE.
23
- */
24
-
25
- const allowedProps = ['children', 'current', 'screenReaderLabel'
26
- // we don't want to pass onClick
27
- // 'onClick'
1
+ const allowedProps = [
2
+ 'children',
3
+ 'current',
4
+ 'screenReaderLabel'
28
5
  ];
29
- export { allowedProps };
6
+ export { allowedProps };