@instructure/ui-pagination 8.10.3-snapshot.19 → 8.10.3-snapshot.23
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/es/Pagination/PaginationArrowButton/index.js +6 -4
- package/es/Pagination/PaginationButton/index.js +6 -4
- package/lib/Pagination/PaginationArrowButton/index.js +6 -4
- package/lib/Pagination/PaginationButton/index.js +6 -4
- package/package.json +21 -21
- package/src/Pagination/PaginationArrowButton/index.tsx +6 -6
- package/src/Pagination/PaginationArrowButton/props.ts +6 -2
- package/src/Pagination/PaginationButton/index.tsx +6 -4
- package/src/Pagination/PaginationButton/props.ts +6 -2
- package/src/Pagination/index.tsx +0 -1
- package/src/Pagination/props.ts +7 -2
- package/types/Pagination/PaginationArrowButton/index.d.ts +1 -0
- package/types/Pagination/PaginationArrowButton/index.d.ts.map +1 -1
- package/types/Pagination/PaginationArrowButton/props.d.ts +2 -2
- package/types/Pagination/PaginationArrowButton/props.d.ts.map +1 -1
- package/types/Pagination/PaginationButton/index.d.ts +1 -0
- package/types/Pagination/PaginationButton/index.d.ts.map +1 -1
- package/types/Pagination/PaginationButton/props.d.ts +2 -2
- package/types/Pagination/PaginationButton/props.d.ts.map +1 -1
- package/types/Pagination/index.d.ts.map +1 -1
- package/types/Pagination/props.d.ts +2 -2
- package/types/Pagination/props.d.ts.map +1 -1
|
@@ -44,6 +44,10 @@ let PaginationArrowButton = (_dec = testable(), _dec(_class = (_temp = _class2 =
|
|
|
44
44
|
constructor(...args) {
|
|
45
45
|
super(...args);
|
|
46
46
|
this.ref = null;
|
|
47
|
+
|
|
48
|
+
this.handleRef = el => {
|
|
49
|
+
this.ref = el;
|
|
50
|
+
};
|
|
47
51
|
}
|
|
48
52
|
|
|
49
53
|
render() {
|
|
@@ -57,16 +61,14 @@ let PaginationArrowButton = (_dec = testable(), _dec(_class = (_temp = _class2 =
|
|
|
57
61
|
return /*#__PURE__*/React.createElement(Tooltip, {
|
|
58
62
|
on: ['hover', 'focus'],
|
|
59
63
|
renderTip: /*#__PURE__*/React.createElement(PresentationContent, {
|
|
60
|
-
elementRef:
|
|
61
|
-
this.ref = element;
|
|
62
|
-
}
|
|
64
|
+
elementRef: this.handleRef
|
|
63
65
|
}, label)
|
|
64
66
|
}, /*#__PURE__*/React.createElement(IconButton, Object.assign({}, props, {
|
|
65
67
|
size: "small",
|
|
66
68
|
withBackground: false,
|
|
67
69
|
withBorder: false,
|
|
68
70
|
screenReaderLabel: label,
|
|
69
|
-
rel: props.href || props.to ? direction :
|
|
71
|
+
rel: props.href || props.to ? direction : void 0,
|
|
70
72
|
elementRef: buttonRef
|
|
71
73
|
}), Icon));
|
|
72
74
|
}
|
|
@@ -39,6 +39,10 @@ let PaginationButton = (_dec = testable(), _dec(_class = (_temp = _class2 = clas
|
|
|
39
39
|
constructor(...args) {
|
|
40
40
|
super(...args);
|
|
41
41
|
this.ref = null;
|
|
42
|
+
|
|
43
|
+
this.handleRef = el => {
|
|
44
|
+
this.ref = el;
|
|
45
|
+
};
|
|
42
46
|
}
|
|
43
47
|
|
|
44
48
|
render() {
|
|
@@ -49,10 +53,8 @@ let PaginationButton = (_dec = testable(), _dec(_class = (_temp = _class2 = clas
|
|
|
49
53
|
withBackground: this.props.current ? true : false,
|
|
50
54
|
withBorder: this.props.current ? true : false
|
|
51
55
|
}, props, {
|
|
52
|
-
"aria-current": this.props.current ? 'page' :
|
|
53
|
-
elementRef:
|
|
54
|
-
this.ref = element;
|
|
55
|
-
}
|
|
56
|
+
"aria-current": this.props.current ? 'page' : void 0,
|
|
57
|
+
elementRef: this.handleRef
|
|
56
58
|
}), this.props.children);
|
|
57
59
|
}
|
|
58
60
|
|
|
@@ -41,6 +41,10 @@ let PaginationArrowButton = (_dec = (0, _testable.testable)(), _dec(_class = (_t
|
|
|
41
41
|
constructor(...args) {
|
|
42
42
|
super(...args);
|
|
43
43
|
this.ref = null;
|
|
44
|
+
|
|
45
|
+
this.handleRef = el => {
|
|
46
|
+
this.ref = el;
|
|
47
|
+
};
|
|
44
48
|
}
|
|
45
49
|
|
|
46
50
|
render() {
|
|
@@ -53,16 +57,14 @@ let PaginationArrowButton = (_dec = (0, _testable.testable)(), _dec(_class = (_t
|
|
|
53
57
|
return /*#__PURE__*/_react.default.createElement(_Tooltip.Tooltip, {
|
|
54
58
|
on: ['hover', 'focus'],
|
|
55
59
|
renderTip: /*#__PURE__*/_react.default.createElement(_PresentationContent.PresentationContent, {
|
|
56
|
-
elementRef:
|
|
57
|
-
this.ref = element;
|
|
58
|
-
}
|
|
60
|
+
elementRef: this.handleRef
|
|
59
61
|
}, label)
|
|
60
62
|
}, /*#__PURE__*/_react.default.createElement(_IconButton.IconButton, Object.assign({}, props, {
|
|
61
63
|
size: "small",
|
|
62
64
|
withBackground: false,
|
|
63
65
|
withBorder: false,
|
|
64
66
|
screenReaderLabel: label,
|
|
65
|
-
rel: props.href || props.to ? direction :
|
|
67
|
+
rel: props.href || props.to ? direction : void 0,
|
|
66
68
|
elementRef: buttonRef
|
|
67
69
|
}), Icon));
|
|
68
70
|
}
|
|
@@ -29,6 +29,10 @@ let PaginationButton = (_dec = (0, _testable.testable)(), _dec(_class = (_temp =
|
|
|
29
29
|
constructor(...args) {
|
|
30
30
|
super(...args);
|
|
31
31
|
this.ref = null;
|
|
32
|
+
|
|
33
|
+
this.handleRef = el => {
|
|
34
|
+
this.ref = el;
|
|
35
|
+
};
|
|
32
36
|
}
|
|
33
37
|
|
|
34
38
|
render() {
|
|
@@ -39,10 +43,8 @@ let PaginationButton = (_dec = (0, _testable.testable)(), _dec(_class = (_temp =
|
|
|
39
43
|
withBackground: this.props.current ? true : false,
|
|
40
44
|
withBorder: this.props.current ? true : false
|
|
41
45
|
}, props, {
|
|
42
|
-
"aria-current": this.props.current ? 'page' :
|
|
43
|
-
elementRef:
|
|
44
|
-
this.ref = element;
|
|
45
|
-
}
|
|
46
|
+
"aria-current": this.props.current ? 'page' : void 0,
|
|
47
|
+
elementRef: this.handleRef
|
|
46
48
|
}), this.props.children);
|
|
47
49
|
}
|
|
48
50
|
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@instructure/ui-pagination",
|
|
3
|
-
"version": "8.10.3-snapshot.
|
|
3
|
+
"version": "8.10.3-snapshot.23+5aaa29662",
|
|
4
4
|
"description": "A UI component library made by Instructure Inc.",
|
|
5
5
|
"author": "Instructure, Inc. Engineering and Product Design",
|
|
6
6
|
"type": "commonjs",
|
|
@@ -24,28 +24,28 @@
|
|
|
24
24
|
},
|
|
25
25
|
"license": "MIT",
|
|
26
26
|
"devDependencies": {
|
|
27
|
-
"@instructure/ui-babel-preset": "8.10.3-snapshot.
|
|
28
|
-
"@instructure/ui-test-locator": "8.10.3-snapshot.
|
|
29
|
-
"@instructure/ui-test-queries": "8.10.3-snapshot.
|
|
30
|
-
"@instructure/ui-test-utils": "8.10.3-snapshot.
|
|
27
|
+
"@instructure/ui-babel-preset": "8.10.3-snapshot.23+5aaa29662",
|
|
28
|
+
"@instructure/ui-test-locator": "8.10.3-snapshot.23+5aaa29662",
|
|
29
|
+
"@instructure/ui-test-queries": "8.10.3-snapshot.23+5aaa29662",
|
|
30
|
+
"@instructure/ui-test-utils": "8.10.3-snapshot.23+5aaa29662"
|
|
31
31
|
},
|
|
32
32
|
"dependencies": {
|
|
33
33
|
"@babel/runtime": "^7.13.10",
|
|
34
|
-
"@instructure/emotion": "8.10.3-snapshot.
|
|
35
|
-
"@instructure/shared-types": "8.10.3-snapshot.
|
|
36
|
-
"@instructure/ui-a11y-content": "8.10.3-snapshot.
|
|
37
|
-
"@instructure/ui-a11y-utils": "8.10.3-snapshot.
|
|
38
|
-
"@instructure/ui-buttons": "8.10.3-snapshot.
|
|
39
|
-
"@instructure/ui-dom-utils": "8.10.3-snapshot.
|
|
40
|
-
"@instructure/ui-icons": "8.10.3-snapshot.
|
|
41
|
-
"@instructure/ui-portal": "8.10.3-snapshot.
|
|
42
|
-
"@instructure/ui-prop-types": "8.10.3-snapshot.
|
|
43
|
-
"@instructure/ui-react-utils": "8.10.3-snapshot.
|
|
44
|
-
"@instructure/ui-testable": "8.10.3-snapshot.
|
|
45
|
-
"@instructure/ui-tooltip": "8.10.3-snapshot.
|
|
46
|
-
"@instructure/ui-utils": "8.10.3-snapshot.
|
|
47
|
-
"@instructure/ui-view": "8.10.3-snapshot.
|
|
48
|
-
"@instructure/uid": "8.10.3-snapshot.
|
|
34
|
+
"@instructure/emotion": "8.10.3-snapshot.23+5aaa29662",
|
|
35
|
+
"@instructure/shared-types": "8.10.3-snapshot.23+5aaa29662",
|
|
36
|
+
"@instructure/ui-a11y-content": "8.10.3-snapshot.23+5aaa29662",
|
|
37
|
+
"@instructure/ui-a11y-utils": "8.10.3-snapshot.23+5aaa29662",
|
|
38
|
+
"@instructure/ui-buttons": "8.10.3-snapshot.23+5aaa29662",
|
|
39
|
+
"@instructure/ui-dom-utils": "8.10.3-snapshot.23+5aaa29662",
|
|
40
|
+
"@instructure/ui-icons": "8.10.3-snapshot.23+5aaa29662",
|
|
41
|
+
"@instructure/ui-portal": "8.10.3-snapshot.23+5aaa29662",
|
|
42
|
+
"@instructure/ui-prop-types": "8.10.3-snapshot.23+5aaa29662",
|
|
43
|
+
"@instructure/ui-react-utils": "8.10.3-snapshot.23+5aaa29662",
|
|
44
|
+
"@instructure/ui-testable": "8.10.3-snapshot.23+5aaa29662",
|
|
45
|
+
"@instructure/ui-tooltip": "8.10.3-snapshot.23+5aaa29662",
|
|
46
|
+
"@instructure/ui-utils": "8.10.3-snapshot.23+5aaa29662",
|
|
47
|
+
"@instructure/ui-view": "8.10.3-snapshot.23+5aaa29662",
|
|
48
|
+
"@instructure/uid": "8.10.3-snapshot.23+5aaa29662",
|
|
49
49
|
"prop-types": "^15"
|
|
50
50
|
},
|
|
51
51
|
"peerDependencies": {
|
|
@@ -55,5 +55,5 @@
|
|
|
55
55
|
"access": "public"
|
|
56
56
|
},
|
|
57
57
|
"sideEffects": false,
|
|
58
|
-
"gitHead": "
|
|
58
|
+
"gitHead": "5aaa296621d72faebe1a809a8895a8185587008d"
|
|
59
59
|
}
|
|
@@ -55,6 +55,10 @@ class PaginationArrowButton extends Component<PaginationNavigationProps> {
|
|
|
55
55
|
|
|
56
56
|
ref: Element | null = null
|
|
57
57
|
|
|
58
|
+
handleRef = (el: Element | null) => {
|
|
59
|
+
this.ref = el
|
|
60
|
+
}
|
|
61
|
+
|
|
58
62
|
render() {
|
|
59
63
|
const { label, direction, buttonRef, ...props } = this.props
|
|
60
64
|
const Icon =
|
|
@@ -63,11 +67,7 @@ class PaginationArrowButton extends Component<PaginationNavigationProps> {
|
|
|
63
67
|
<Tooltip
|
|
64
68
|
on={['hover', 'focus']}
|
|
65
69
|
renderTip={
|
|
66
|
-
<PresentationContent
|
|
67
|
-
elementRef={(element) => {
|
|
68
|
-
this.ref = element
|
|
69
|
-
}}
|
|
70
|
-
>
|
|
70
|
+
<PresentationContent elementRef={this.handleRef}>
|
|
71
71
|
{label}
|
|
72
72
|
</PresentationContent>
|
|
73
73
|
}
|
|
@@ -80,7 +80,7 @@ class PaginationArrowButton extends Component<PaginationNavigationProps> {
|
|
|
80
80
|
// @ts-expect-error ts-migrate(2769) FIXME: No overload matches this call.
|
|
81
81
|
screenReaderLabel={label}
|
|
82
82
|
// @ts-expect-error ts-migrate(2339) FIXME: Property 'href' does not exist on type '{ children... Remove this comment to see the full error message
|
|
83
|
-
rel={props.href || props.to ? direction :
|
|
83
|
+
rel={props.href || props.to ? direction : undefined}
|
|
84
84
|
elementRef={buttonRef}
|
|
85
85
|
>
|
|
86
86
|
{Icon}
|
|
@@ -25,7 +25,10 @@
|
|
|
25
25
|
import React from 'react'
|
|
26
26
|
import PropTypes from 'prop-types'
|
|
27
27
|
|
|
28
|
-
import type {
|
|
28
|
+
import type {
|
|
29
|
+
OtherHTMLAttributes,
|
|
30
|
+
PropValidators
|
|
31
|
+
} from '@instructure/shared-types'
|
|
29
32
|
|
|
30
33
|
type PaginationNavigationOwnProps = {
|
|
31
34
|
direction?: 'next' | 'prev'
|
|
@@ -37,7 +40,8 @@ type PropKeys = keyof PaginationNavigationOwnProps
|
|
|
37
40
|
|
|
38
41
|
type AllowedPropKeys = Readonly<Array<PropKeys>>
|
|
39
42
|
|
|
40
|
-
type PaginationNavigationProps = PaginationNavigationOwnProps
|
|
43
|
+
type PaginationNavigationProps = PaginationNavigationOwnProps &
|
|
44
|
+
OtherHTMLAttributes<PaginationNavigationOwnProps>
|
|
41
45
|
|
|
42
46
|
const propTypes: PropValidators<PropKeys> = {
|
|
43
47
|
direction: PropTypes.oneOf(['next', 'prev']),
|
|
@@ -50,6 +50,10 @@ class PaginationButton extends Component<PaginationPageProps> {
|
|
|
50
50
|
|
|
51
51
|
ref: Element | null = null
|
|
52
52
|
|
|
53
|
+
handleRef = (el: Element | null) => {
|
|
54
|
+
this.ref = el
|
|
55
|
+
}
|
|
56
|
+
|
|
53
57
|
render() {
|
|
54
58
|
const exclude = this.props.current ? ['onClick', 'href'] : []
|
|
55
59
|
const props = omitProps(this.props, PaginationButton.allowedProps, exclude)
|
|
@@ -59,10 +63,8 @@ class PaginationButton extends Component<PaginationPageProps> {
|
|
|
59
63
|
withBackground={this.props.current ? true : false}
|
|
60
64
|
withBorder={this.props.current ? true : false}
|
|
61
65
|
{...props}
|
|
62
|
-
aria-current={this.props.current ? 'page' :
|
|
63
|
-
elementRef={
|
|
64
|
-
this.ref = element
|
|
65
|
-
}}
|
|
66
|
+
aria-current={this.props.current ? 'page' : undefined}
|
|
67
|
+
elementRef={this.handleRef}
|
|
66
68
|
>
|
|
67
69
|
{this.props.children}
|
|
68
70
|
</BaseButton>
|
|
@@ -25,7 +25,10 @@
|
|
|
25
25
|
import React from 'react'
|
|
26
26
|
import PropTypes from 'prop-types'
|
|
27
27
|
|
|
28
|
-
import type {
|
|
28
|
+
import type {
|
|
29
|
+
OtherHTMLAttributes,
|
|
30
|
+
PropValidators
|
|
31
|
+
} from '@instructure/shared-types'
|
|
29
32
|
|
|
30
33
|
type PaginationPageOwnProps = {
|
|
31
34
|
children: React.ReactNode
|
|
@@ -36,7 +39,8 @@ type PropKeys = keyof PaginationPageOwnProps
|
|
|
36
39
|
|
|
37
40
|
type AllowedPropKeys = Readonly<Array<PropKeys>>
|
|
38
41
|
|
|
39
|
-
type PaginationPageProps = PaginationPageOwnProps
|
|
42
|
+
type PaginationPageProps = PaginationPageOwnProps &
|
|
43
|
+
OtherHTMLAttributes<PaginationPageOwnProps>
|
|
40
44
|
|
|
41
45
|
const propTypes: PropValidators<PropKeys> = {
|
|
42
46
|
/**
|
package/src/Pagination/index.tsx
CHANGED
|
@@ -257,7 +257,6 @@ class Pagination extends Component<PaginationProps> {
|
|
|
257
257
|
<PaginationArrowButton
|
|
258
258
|
direction={direction === -1 ? 'prev' : 'next'}
|
|
259
259
|
label={label}
|
|
260
|
-
// @ts-expect-error ts-migrate(2769) FIXME: No overload matches this call.
|
|
261
260
|
onClick={onClick}
|
|
262
261
|
disabled={disabled}
|
|
263
262
|
buttonRef={handleButtonRef}
|
package/src/Pagination/props.ts
CHANGED
|
@@ -35,7 +35,11 @@ import type {
|
|
|
35
35
|
WithStyleProps,
|
|
36
36
|
ComponentStyle
|
|
37
37
|
} from '@instructure/emotion'
|
|
38
|
-
import type {
|
|
38
|
+
import type {
|
|
39
|
+
AsElementType,
|
|
40
|
+
OtherHTMLAttributes,
|
|
41
|
+
PropValidators
|
|
42
|
+
} from '@instructure/shared-types'
|
|
39
43
|
|
|
40
44
|
type PaginationOwnProps = {
|
|
41
45
|
children?: React.ReactNode // TODO: oneof([PaginationButton])
|
|
@@ -55,7 +59,8 @@ type PropKeys = keyof PaginationOwnProps
|
|
|
55
59
|
type AllowedPropKeys = Readonly<Array<PropKeys>>
|
|
56
60
|
|
|
57
61
|
type PaginationProps = PaginationOwnProps &
|
|
58
|
-
WithStyleProps<null, PaginationStyle>
|
|
62
|
+
WithStyleProps<null, PaginationStyle> &
|
|
63
|
+
OtherHTMLAttributes<PaginationOwnProps>
|
|
59
64
|
|
|
60
65
|
type PaginationStyle = ComponentStyle<'pagination' | 'pages'>
|
|
61
66
|
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/Pagination/PaginationArrowButton/index.tsx"],"names":[],"mappings":"AAwBA,OAAO,KAAK,EAAE,EAAE,SAAS,EAAE,MAAM,OAAO,CAAA;AAUxC,OAAO,KAAK,EAAE,yBAAyB,EAAE,MAAM,SAAS,CAAA;AAGxD;;;;;GAKG;AACH,cACM,qBAAsB,SAAQ,SAAS,CAAC,yBAAyB,CAAC;IACtE,MAAM,CAAC,QAAQ,CAAC,WAAW,2BAA0B;IAErD,MAAM,CAAC,YAAY;;;;SAAe;IAClC,MAAM,CAAC,SAAS;;;;OAAY;IAE5B,MAAM,CAAC,YAAY;;MAGlB;IAED,GAAG,EAAE,OAAO,GAAG,IAAI,CAAO;IAE1B,MAAM;
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/Pagination/PaginationArrowButton/index.tsx"],"names":[],"mappings":"AAwBA,OAAO,KAAK,EAAE,EAAE,SAAS,EAAE,MAAM,OAAO,CAAA;AAUxC,OAAO,KAAK,EAAE,yBAAyB,EAAE,MAAM,SAAS,CAAA;AAGxD;;;;;GAKG;AACH,cACM,qBAAsB,SAAQ,SAAS,CAAC,yBAAyB,CAAC;IACtE,MAAM,CAAC,QAAQ,CAAC,WAAW,2BAA0B;IAErD,MAAM,CAAC,YAAY;;;;SAAe;IAClC,MAAM,CAAC,SAAS;;;;OAAY;IAE5B,MAAM,CAAC,YAAY;;MAGlB;IAED,GAAG,EAAE,OAAO,GAAG,IAAI,CAAO;IAE1B,SAAS,OAAQ,OAAO,GAAG,IAAI,UAE9B;IAED,MAAM;CA6BP;AAED,eAAe,qBAAqB,CAAA;AACpC,OAAO,EAAE,qBAAqB,EAAE,CAAA"}
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
|
-
import type { PropValidators } from '@instructure/shared-types';
|
|
2
|
+
import type { OtherHTMLAttributes, PropValidators } from '@instructure/shared-types';
|
|
3
3
|
declare type PaginationNavigationOwnProps = {
|
|
4
4
|
direction?: 'next' | 'prev';
|
|
5
5
|
label: string | React.ReactNode;
|
|
@@ -7,7 +7,7 @@ declare type PaginationNavigationOwnProps = {
|
|
|
7
7
|
};
|
|
8
8
|
declare type PropKeys = keyof PaginationNavigationOwnProps;
|
|
9
9
|
declare type AllowedPropKeys = Readonly<Array<PropKeys>>;
|
|
10
|
-
declare type PaginationNavigationProps = PaginationNavigationOwnProps
|
|
10
|
+
declare type PaginationNavigationProps = PaginationNavigationOwnProps & OtherHTMLAttributes<PaginationNavigationOwnProps>;
|
|
11
11
|
declare const propTypes: PropValidators<PropKeys>;
|
|
12
12
|
declare const allowedProps: AllowedPropKeys;
|
|
13
13
|
export type { PaginationNavigationProps };
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"props.d.ts","sourceRoot":"","sources":["../../../src/Pagination/PaginationArrowButton/props.ts"],"names":[],"mappings":"AAwBA,OAAO,KAAK,MAAM,OAAO,CAAA;AAGzB,OAAO,KAAK,
|
|
1
|
+
{"version":3,"file":"props.d.ts","sourceRoot":"","sources":["../../../src/Pagination/PaginationArrowButton/props.ts"],"names":[],"mappings":"AAwBA,OAAO,KAAK,MAAM,OAAO,CAAA;AAGzB,OAAO,KAAK,EACV,mBAAmB,EACnB,cAAc,EACf,MAAM,2BAA2B,CAAA;AAElC,aAAK,4BAA4B,GAAG;IAClC,SAAS,CAAC,EAAE,MAAM,GAAG,MAAM,CAAA;IAC3B,KAAK,EAAE,MAAM,GAAG,KAAK,CAAC,SAAS,CAAA;IAC/B,SAAS,CAAC,EAAE,CAAC,GAAG,IAAI,EAAE,GAAG,EAAE,KAAK,GAAG,CAAA;CACpC,CAAA;AAED,aAAK,QAAQ,GAAG,MAAM,4BAA4B,CAAA;AAElD,aAAK,eAAe,GAAG,QAAQ,CAAC,KAAK,CAAC,QAAQ,CAAC,CAAC,CAAA;AAEhD,aAAK,yBAAyB,GAAG,4BAA4B,GAC3D,mBAAmB,CAAC,4BAA4B,CAAC,CAAA;AAEnD,QAAA,MAAM,SAAS,EAAE,cAAc,CAAC,QAAQ,CAIvC,CAAA;AAED,QAAA,MAAM,YAAY,EAAE,eAAqD,CAAA;AAEzE,YAAY,EAAE,yBAAyB,EAAE,CAAA;AACzC,OAAO,EAAE,SAAS,EAAE,YAAY,EAAE,CAAA"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/Pagination/PaginationButton/index.tsx"],"names":[],"mappings":"AAwBA,OAAO,KAAK,EAAE,EAAE,SAAS,EAAE,MAAM,OAAO,CAAA;AAOxC,OAAO,KAAK,EAAE,mBAAmB,EAAE,MAAM,SAAS,CAAA;AAElD;;;;;GAKG;AAEH,cACM,gBAAiB,SAAQ,SAAS,CAAC,mBAAmB,CAAC;IAC3D,MAAM,CAAC,QAAQ,CAAC,WAAW,qBAAoB;IAE/C,MAAM,CAAC,SAAS;;;OAAY;IAC5B,MAAM,CAAC,YAAY;;;SAAe;IAClC,MAAM,CAAC,YAAY;;MAElB;IAED,GAAG,EAAE,OAAO,GAAG,IAAI,CAAO;IAE1B,MAAM;
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/Pagination/PaginationButton/index.tsx"],"names":[],"mappings":"AAwBA,OAAO,KAAK,EAAE,EAAE,SAAS,EAAE,MAAM,OAAO,CAAA;AAOxC,OAAO,KAAK,EAAE,mBAAmB,EAAE,MAAM,SAAS,CAAA;AAElD;;;;;GAKG;AAEH,cACM,gBAAiB,SAAQ,SAAS,CAAC,mBAAmB,CAAC;IAC3D,MAAM,CAAC,QAAQ,CAAC,WAAW,qBAAoB;IAE/C,MAAM,CAAC,SAAS;;;OAAY;IAC5B,MAAM,CAAC,YAAY;;;SAAe;IAClC,MAAM,CAAC,YAAY;;MAElB;IAED,GAAG,EAAE,OAAO,GAAG,IAAI,CAAO;IAE1B,SAAS,OAAQ,OAAO,GAAG,IAAI,UAE9B;IAED,MAAM;CAgBP;AAED,eAAe,gBAAgB,CAAA;AAC/B,OAAO,EAAE,gBAAgB,EAAE,CAAA"}
|
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
|
-
import type { PropValidators } from '@instructure/shared-types';
|
|
2
|
+
import type { OtherHTMLAttributes, PropValidators } from '@instructure/shared-types';
|
|
3
3
|
declare type PaginationPageOwnProps = {
|
|
4
4
|
children: React.ReactNode;
|
|
5
5
|
current?: boolean;
|
|
6
6
|
};
|
|
7
7
|
declare type PropKeys = keyof PaginationPageOwnProps;
|
|
8
8
|
declare type AllowedPropKeys = Readonly<Array<PropKeys>>;
|
|
9
|
-
declare type PaginationPageProps = PaginationPageOwnProps
|
|
9
|
+
declare type PaginationPageProps = PaginationPageOwnProps & OtherHTMLAttributes<PaginationPageOwnProps>;
|
|
10
10
|
declare const propTypes: PropValidators<PropKeys>;
|
|
11
11
|
declare const allowedProps: AllowedPropKeys;
|
|
12
12
|
export type { PaginationPageProps };
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"props.d.ts","sourceRoot":"","sources":["../../../src/Pagination/PaginationButton/props.ts"],"names":[],"mappings":"AAwBA,OAAO,KAAK,MAAM,OAAO,CAAA;AAGzB,OAAO,KAAK,
|
|
1
|
+
{"version":3,"file":"props.d.ts","sourceRoot":"","sources":["../../../src/Pagination/PaginationButton/props.ts"],"names":[],"mappings":"AAwBA,OAAO,KAAK,MAAM,OAAO,CAAA;AAGzB,OAAO,KAAK,EACV,mBAAmB,EACnB,cAAc,EACf,MAAM,2BAA2B,CAAA;AAElC,aAAK,sBAAsB,GAAG;IAC5B,QAAQ,EAAE,KAAK,CAAC,SAAS,CAAA;IACzB,OAAO,CAAC,EAAE,OAAO,CAAA;CAClB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EAAE,SAAS,KAAA,EAAE,gBAAgB,KAAA;IA4BpD,MAAM;CAoCP;AAED,eAAe,UAAU,CAAA;AACzB,OAAO,EAAE,UAAU,EAAE,gBAAgB,EAAE,CAAA"}
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
2
|
import type { Spacing, WithStyleProps, ComponentStyle } from '@instructure/emotion';
|
|
3
|
-
import type { AsElementType, PropValidators } from '@instructure/shared-types';
|
|
3
|
+
import type { AsElementType, OtherHTMLAttributes, PropValidators } from '@instructure/shared-types';
|
|
4
4
|
declare type PaginationOwnProps = {
|
|
5
5
|
children?: React.ReactNode;
|
|
6
6
|
disabled?: boolean;
|
|
@@ -15,7 +15,7 @@ declare type PaginationOwnProps = {
|
|
|
15
15
|
};
|
|
16
16
|
declare type PropKeys = keyof PaginationOwnProps;
|
|
17
17
|
declare type AllowedPropKeys = Readonly<Array<PropKeys>>;
|
|
18
|
-
declare type PaginationProps = PaginationOwnProps & WithStyleProps<null, PaginationStyle>;
|
|
18
|
+
declare type PaginationProps = PaginationOwnProps & WithStyleProps<null, PaginationStyle> & OtherHTMLAttributes<PaginationOwnProps>;
|
|
19
19
|
declare type PaginationStyle = ComponentStyle<'pagination' | 'pages'>;
|
|
20
20
|
declare const propTypes: PropValidators<PropKeys>;
|
|
21
21
|
declare const allowedProps: AllowedPropKeys;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"props.d.ts","sourceRoot":"","sources":["../../src/Pagination/props.ts"],"names":[],"mappings":"AAwBA,OAAO,KAAK,MAAM,OAAO,CAAA;AAQzB,OAAO,KAAK,EACV,OAAO,EACP,cAAc,EACd,cAAc,EACf,MAAM,sBAAsB,CAAA;AAC7B,OAAO,KAAK,
|
|
1
|
+
{"version":3,"file":"props.d.ts","sourceRoot":"","sources":["../../src/Pagination/props.ts"],"names":[],"mappings":"AAwBA,OAAO,KAAK,MAAM,OAAO,CAAA;AAQzB,OAAO,KAAK,EACV,OAAO,EAC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