@zendeskgarden/react-pagination 8.47.2 → 8.48.0
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/dist/index.cjs.js +23 -18
- package/dist/index.esm.js +24 -19
- package/dist/typings/elements/CursorPagination/CursorPagination.d.ts +8 -9
- package/dist/typings/elements/CursorPagination/components/First.d.ts +3 -0
- package/dist/typings/elements/CursorPagination/components/Last.d.ts +4 -0
- package/dist/typings/elements/CursorPagination/components/Next.d.ts +4 -0
- package/dist/typings/elements/CursorPagination/components/Previous.d.ts +4 -0
- package/dist/typings/elements/Pagination/Pagination.d.ts +3 -4
- package/dist/typings/index.d.ts +1 -1
- package/package.json +3 -3
package/dist/index.cjs.js
CHANGED
|
@@ -235,7 +235,7 @@ var SvgChevronRightStroke = function SvgChevronRightStroke(props) {
|
|
|
235
235
|
var COMPONENT_ID$6 = 'pagination.pagination_view';
|
|
236
236
|
var StyledPagination = styled__default["default"].ul.attrs({
|
|
237
237
|
'data-garden-id': COMPONENT_ID$6,
|
|
238
|
-
'data-garden-version': '8.
|
|
238
|
+
'data-garden-version': '8.48.0'
|
|
239
239
|
}).withConfig({
|
|
240
240
|
displayName: "StyledPagination",
|
|
241
241
|
componentId: "sc-1b7nye9-0"
|
|
@@ -273,7 +273,7 @@ var sizeStyles$2 = function sizeStyles(props) {
|
|
|
273
273
|
};
|
|
274
274
|
var StyledPageBase = styled__default["default"].li.attrs({
|
|
275
275
|
'data-garden-id': COMPONENT_ID$5,
|
|
276
|
-
'data-garden-version': '8.
|
|
276
|
+
'data-garden-version': '8.48.0'
|
|
277
277
|
}).withConfig({
|
|
278
278
|
displayName: "StyledPageBase",
|
|
279
279
|
componentId: "sc-lw1w9j-0"
|
|
@@ -301,7 +301,7 @@ var sizeStyles$1 = function sizeStyles(props) {
|
|
|
301
301
|
};
|
|
302
302
|
var StyledPage = styled__default["default"](StyledPageBase).attrs({
|
|
303
303
|
'data-garden-id': COMPONENT_ID$4,
|
|
304
|
-
'data-garden-version': '8.
|
|
304
|
+
'data-garden-version': '8.48.0'
|
|
305
305
|
}).withConfig({
|
|
306
306
|
displayName: "StyledPage",
|
|
307
307
|
componentId: "sc-1k0een3-0"
|
|
@@ -323,7 +323,7 @@ StyledPage.defaultProps = {
|
|
|
323
323
|
var COMPONENT_ID$3 = 'cursor_pagination';
|
|
324
324
|
var StyledCursorPagination = styled__default["default"].nav.attrs({
|
|
325
325
|
'data-garden-id': COMPONENT_ID$3,
|
|
326
|
-
'data-garden-version': '8.
|
|
326
|
+
'data-garden-version': '8.48.0'
|
|
327
327
|
}).withConfig({
|
|
328
328
|
displayName: "StyledCursorPagination",
|
|
329
329
|
componentId: "sc-qmfecg-0"
|
|
@@ -337,7 +337,7 @@ StyledCursorPagination.defaultProps = {
|
|
|
337
337
|
var COMPONENT_ID$2 = 'cursor_pagination.cursor';
|
|
338
338
|
var StyledCursor = styled__default["default"](StyledPageBase).attrs({
|
|
339
339
|
'data-garden-id': COMPONENT_ID$2,
|
|
340
|
-
'data-garden-version': '8.
|
|
340
|
+
'data-garden-version': '8.48.0',
|
|
341
341
|
as: 'button'
|
|
342
342
|
}).withConfig({
|
|
343
343
|
displayName: "StyledCursor",
|
|
@@ -388,7 +388,7 @@ var sizeStyles = function sizeStyles(props) {
|
|
|
388
388
|
};
|
|
389
389
|
var StyledGap = styled__default["default"](StyledPage).attrs({
|
|
390
390
|
'data-garden-id': COMPONENT_ID$1,
|
|
391
|
-
'data-garden-version': '8.
|
|
391
|
+
'data-garden-version': '8.48.0'
|
|
392
392
|
}).withConfig({
|
|
393
393
|
displayName: "StyledGap",
|
|
394
394
|
componentId: "sc-1hqjltf-0"
|
|
@@ -404,7 +404,7 @@ StyledGap.defaultProps = {
|
|
|
404
404
|
var COMPONENT_ID = 'pagination.navigation';
|
|
405
405
|
var StyledNavigation = styled__default["default"](StyledPage).attrs({
|
|
406
406
|
'data-garden-id': COMPONENT_ID,
|
|
407
|
-
'data-garden-version': '8.
|
|
407
|
+
'data-garden-version': '8.48.0'
|
|
408
408
|
}).withConfig({
|
|
409
409
|
displayName: "StyledNavigation",
|
|
410
410
|
componentId: "sc-184uuwe-0"
|
|
@@ -418,7 +418,7 @@ StyledNavigation.defaultProps = {
|
|
|
418
418
|
var _excluded$4 = ["currentPage", "transformPageProps", "totalPages", "pagePadding", "pageGap", "onChange"];
|
|
419
419
|
var PREVIOUS_KEY = 'previous';
|
|
420
420
|
var NEXT_KEY = 'next';
|
|
421
|
-
var Pagination =
|
|
421
|
+
var Pagination = React.forwardRef(function (_ref, ref) {
|
|
422
422
|
var controlledCurrentPage = _ref.currentPage,
|
|
423
423
|
transformPageProps = _ref.transformPageProps,
|
|
424
424
|
totalPages = _ref.totalPages,
|
|
@@ -606,7 +606,7 @@ var SvgChevronDoubleLeftStroke = function SvgChevronDoubleLeftStroke(props) {
|
|
|
606
606
|
};
|
|
607
607
|
|
|
608
608
|
var _excluded$3 = ["children"];
|
|
609
|
-
var
|
|
609
|
+
var FirstComponent = React.forwardRef(function (_ref, ref) {
|
|
610
610
|
var children = _ref.children,
|
|
611
611
|
other = _objectWithoutProperties(_ref, _excluded$3);
|
|
612
612
|
return React__default["default"].createElement(StyledCursor, _extends$4({
|
|
@@ -615,10 +615,11 @@ var First = React__default["default"].forwardRef(function (_ref, ref) {
|
|
|
615
615
|
type: "first"
|
|
616
616
|
}, React__default["default"].createElement(SvgChevronDoubleLeftStroke, null)), React__default["default"].createElement("span", null, children));
|
|
617
617
|
});
|
|
618
|
-
|
|
618
|
+
FirstComponent.displayName = 'CursorPagination.First';
|
|
619
|
+
var First = FirstComponent;
|
|
619
620
|
|
|
620
621
|
var _excluded$2 = ["children"];
|
|
621
|
-
var
|
|
622
|
+
var NextComponent = React.forwardRef(function (_ref, ref) {
|
|
622
623
|
var children = _ref.children,
|
|
623
624
|
other = _objectWithoutProperties(_ref, _excluded$2);
|
|
624
625
|
return React__default["default"].createElement(StyledCursor, _extends$4({
|
|
@@ -628,10 +629,11 @@ var Next = React__default["default"].forwardRef(function (_ref, ref) {
|
|
|
628
629
|
type: "next"
|
|
629
630
|
}, React__default["default"].createElement(SvgChevronRightStroke, null)));
|
|
630
631
|
});
|
|
631
|
-
|
|
632
|
+
NextComponent.displayName = 'CursorPagination.Next';
|
|
633
|
+
var Next = NextComponent;
|
|
632
634
|
|
|
633
635
|
var _excluded$1 = ["children"];
|
|
634
|
-
var
|
|
636
|
+
var PreviousComponent = React.forwardRef(function (_ref, ref) {
|
|
635
637
|
var children = _ref.children,
|
|
636
638
|
other = _objectWithoutProperties(_ref, _excluded$1);
|
|
637
639
|
return React__default["default"].createElement(StyledCursor, _extends$4({
|
|
@@ -641,7 +643,8 @@ var Previous = React__default["default"].forwardRef(function (_ref, ref) {
|
|
|
641
643
|
type: "previous"
|
|
642
644
|
}, React__default["default"].createElement(SvgChevronLeftStroke, null)), React__default["default"].createElement("span", null, children));
|
|
643
645
|
});
|
|
644
|
-
|
|
646
|
+
PreviousComponent.displayName = 'CursorPagination.Previous';
|
|
647
|
+
var Previous = PreviousComponent;
|
|
645
648
|
|
|
646
649
|
var _path;
|
|
647
650
|
|
|
@@ -662,7 +665,7 @@ var SvgChevronDoubleRightStroke = function SvgChevronDoubleRightStroke(props) {
|
|
|
662
665
|
};
|
|
663
666
|
|
|
664
667
|
var _excluded = ["children"];
|
|
665
|
-
var
|
|
668
|
+
var LastComponent = React.forwardRef(function (_ref, ref) {
|
|
666
669
|
var children = _ref.children,
|
|
667
670
|
other = _objectWithoutProperties(_ref, _excluded);
|
|
668
671
|
return React__default["default"].createElement(StyledCursor, _extends$4({
|
|
@@ -672,18 +675,20 @@ var Last = React__default["default"].forwardRef(function (_ref, ref) {
|
|
|
672
675
|
type: "last"
|
|
673
676
|
}, React__default["default"].createElement(SvgChevronDoubleRightStroke, null)));
|
|
674
677
|
});
|
|
675
|
-
|
|
678
|
+
LastComponent.displayName = 'CursorPagination.Last';
|
|
679
|
+
var Last = LastComponent;
|
|
676
680
|
|
|
677
|
-
var
|
|
681
|
+
var CursorPaginationComponent = React.forwardRef(function (props, ref) {
|
|
678
682
|
return React__default["default"].createElement(StyledCursorPagination, _extends$4({
|
|
679
683
|
ref: ref
|
|
680
684
|
}, props));
|
|
681
685
|
});
|
|
686
|
+
CursorPaginationComponent.displayName = 'CursorPagination';
|
|
687
|
+
var CursorPagination = CursorPaginationComponent;
|
|
682
688
|
CursorPagination.First = First;
|
|
683
689
|
CursorPagination.Next = Next;
|
|
684
690
|
CursorPagination.Previous = Previous;
|
|
685
691
|
CursorPagination.Last = Last;
|
|
686
|
-
CursorPagination.displayName = 'CursorPagination';
|
|
687
692
|
|
|
688
693
|
exports.CursorPagination = CursorPagination;
|
|
689
694
|
exports.Pagination = Pagination;
|
package/dist/index.esm.js
CHANGED
|
@@ -6,7 +6,7 @@
|
|
|
6
6
|
*/
|
|
7
7
|
|
|
8
8
|
import * as React from 'react';
|
|
9
|
-
import React__default, { cloneElement, Children, useState, useContext } from 'react';
|
|
9
|
+
import React__default, { cloneElement, Children, forwardRef, useState, useContext } from 'react';
|
|
10
10
|
import PropTypes from 'prop-types';
|
|
11
11
|
import styled, { css, ThemeContext } from 'styled-components';
|
|
12
12
|
import { usePagination } from '@zendeskgarden/container-pagination';
|
|
@@ -207,7 +207,7 @@ var SvgChevronRightStroke = function SvgChevronRightStroke(props) {
|
|
|
207
207
|
var COMPONENT_ID$6 = 'pagination.pagination_view';
|
|
208
208
|
var StyledPagination = styled.ul.attrs({
|
|
209
209
|
'data-garden-id': COMPONENT_ID$6,
|
|
210
|
-
'data-garden-version': '8.
|
|
210
|
+
'data-garden-version': '8.48.0'
|
|
211
211
|
}).withConfig({
|
|
212
212
|
displayName: "StyledPagination",
|
|
213
213
|
componentId: "sc-1b7nye9-0"
|
|
@@ -245,7 +245,7 @@ var sizeStyles$2 = function sizeStyles(props) {
|
|
|
245
245
|
};
|
|
246
246
|
var StyledPageBase = styled.li.attrs({
|
|
247
247
|
'data-garden-id': COMPONENT_ID$5,
|
|
248
|
-
'data-garden-version': '8.
|
|
248
|
+
'data-garden-version': '8.48.0'
|
|
249
249
|
}).withConfig({
|
|
250
250
|
displayName: "StyledPageBase",
|
|
251
251
|
componentId: "sc-lw1w9j-0"
|
|
@@ -273,7 +273,7 @@ var sizeStyles$1 = function sizeStyles(props) {
|
|
|
273
273
|
};
|
|
274
274
|
var StyledPage = styled(StyledPageBase).attrs({
|
|
275
275
|
'data-garden-id': COMPONENT_ID$4,
|
|
276
|
-
'data-garden-version': '8.
|
|
276
|
+
'data-garden-version': '8.48.0'
|
|
277
277
|
}).withConfig({
|
|
278
278
|
displayName: "StyledPage",
|
|
279
279
|
componentId: "sc-1k0een3-0"
|
|
@@ -295,7 +295,7 @@ StyledPage.defaultProps = {
|
|
|
295
295
|
var COMPONENT_ID$3 = 'cursor_pagination';
|
|
296
296
|
var StyledCursorPagination = styled.nav.attrs({
|
|
297
297
|
'data-garden-id': COMPONENT_ID$3,
|
|
298
|
-
'data-garden-version': '8.
|
|
298
|
+
'data-garden-version': '8.48.0'
|
|
299
299
|
}).withConfig({
|
|
300
300
|
displayName: "StyledCursorPagination",
|
|
301
301
|
componentId: "sc-qmfecg-0"
|
|
@@ -309,7 +309,7 @@ StyledCursorPagination.defaultProps = {
|
|
|
309
309
|
var COMPONENT_ID$2 = 'cursor_pagination.cursor';
|
|
310
310
|
var StyledCursor = styled(StyledPageBase).attrs({
|
|
311
311
|
'data-garden-id': COMPONENT_ID$2,
|
|
312
|
-
'data-garden-version': '8.
|
|
312
|
+
'data-garden-version': '8.48.0',
|
|
313
313
|
as: 'button'
|
|
314
314
|
}).withConfig({
|
|
315
315
|
displayName: "StyledCursor",
|
|
@@ -360,7 +360,7 @@ var sizeStyles = function sizeStyles(props) {
|
|
|
360
360
|
};
|
|
361
361
|
var StyledGap = styled(StyledPage).attrs({
|
|
362
362
|
'data-garden-id': COMPONENT_ID$1,
|
|
363
|
-
'data-garden-version': '8.
|
|
363
|
+
'data-garden-version': '8.48.0'
|
|
364
364
|
}).withConfig({
|
|
365
365
|
displayName: "StyledGap",
|
|
366
366
|
componentId: "sc-1hqjltf-0"
|
|
@@ -376,7 +376,7 @@ StyledGap.defaultProps = {
|
|
|
376
376
|
var COMPONENT_ID = 'pagination.navigation';
|
|
377
377
|
var StyledNavigation = styled(StyledPage).attrs({
|
|
378
378
|
'data-garden-id': COMPONENT_ID,
|
|
379
|
-
'data-garden-version': '8.
|
|
379
|
+
'data-garden-version': '8.48.0'
|
|
380
380
|
}).withConfig({
|
|
381
381
|
displayName: "StyledNavigation",
|
|
382
382
|
componentId: "sc-184uuwe-0"
|
|
@@ -390,7 +390,7 @@ StyledNavigation.defaultProps = {
|
|
|
390
390
|
var _excluded$4 = ["currentPage", "transformPageProps", "totalPages", "pagePadding", "pageGap", "onChange"];
|
|
391
391
|
var PREVIOUS_KEY = 'previous';
|
|
392
392
|
var NEXT_KEY = 'next';
|
|
393
|
-
var Pagination =
|
|
393
|
+
var Pagination = forwardRef(function (_ref, ref) {
|
|
394
394
|
var controlledCurrentPage = _ref.currentPage,
|
|
395
395
|
transformPageProps = _ref.transformPageProps,
|
|
396
396
|
totalPages = _ref.totalPages,
|
|
@@ -578,7 +578,7 @@ var SvgChevronDoubleLeftStroke = function SvgChevronDoubleLeftStroke(props) {
|
|
|
578
578
|
};
|
|
579
579
|
|
|
580
580
|
var _excluded$3 = ["children"];
|
|
581
|
-
var
|
|
581
|
+
var FirstComponent = forwardRef(function (_ref, ref) {
|
|
582
582
|
var children = _ref.children,
|
|
583
583
|
other = _objectWithoutProperties(_ref, _excluded$3);
|
|
584
584
|
return React__default.createElement(StyledCursor, _extends$4({
|
|
@@ -587,10 +587,11 @@ var First = React__default.forwardRef(function (_ref, ref) {
|
|
|
587
587
|
type: "first"
|
|
588
588
|
}, React__default.createElement(SvgChevronDoubleLeftStroke, null)), React__default.createElement("span", null, children));
|
|
589
589
|
});
|
|
590
|
-
|
|
590
|
+
FirstComponent.displayName = 'CursorPagination.First';
|
|
591
|
+
var First = FirstComponent;
|
|
591
592
|
|
|
592
593
|
var _excluded$2 = ["children"];
|
|
593
|
-
var
|
|
594
|
+
var NextComponent = forwardRef(function (_ref, ref) {
|
|
594
595
|
var children = _ref.children,
|
|
595
596
|
other = _objectWithoutProperties(_ref, _excluded$2);
|
|
596
597
|
return React__default.createElement(StyledCursor, _extends$4({
|
|
@@ -600,10 +601,11 @@ var Next = React__default.forwardRef(function (_ref, ref) {
|
|
|
600
601
|
type: "next"
|
|
601
602
|
}, React__default.createElement(SvgChevronRightStroke, null)));
|
|
602
603
|
});
|
|
603
|
-
|
|
604
|
+
NextComponent.displayName = 'CursorPagination.Next';
|
|
605
|
+
var Next = NextComponent;
|
|
604
606
|
|
|
605
607
|
var _excluded$1 = ["children"];
|
|
606
|
-
var
|
|
608
|
+
var PreviousComponent = forwardRef(function (_ref, ref) {
|
|
607
609
|
var children = _ref.children,
|
|
608
610
|
other = _objectWithoutProperties(_ref, _excluded$1);
|
|
609
611
|
return React__default.createElement(StyledCursor, _extends$4({
|
|
@@ -613,7 +615,8 @@ var Previous = React__default.forwardRef(function (_ref, ref) {
|
|
|
613
615
|
type: "previous"
|
|
614
616
|
}, React__default.createElement(SvgChevronLeftStroke, null)), React__default.createElement("span", null, children));
|
|
615
617
|
});
|
|
616
|
-
|
|
618
|
+
PreviousComponent.displayName = 'CursorPagination.Previous';
|
|
619
|
+
var Previous = PreviousComponent;
|
|
617
620
|
|
|
618
621
|
var _path;
|
|
619
622
|
|
|
@@ -634,7 +637,7 @@ var SvgChevronDoubleRightStroke = function SvgChevronDoubleRightStroke(props) {
|
|
|
634
637
|
};
|
|
635
638
|
|
|
636
639
|
var _excluded = ["children"];
|
|
637
|
-
var
|
|
640
|
+
var LastComponent = forwardRef(function (_ref, ref) {
|
|
638
641
|
var children = _ref.children,
|
|
639
642
|
other = _objectWithoutProperties(_ref, _excluded);
|
|
640
643
|
return React__default.createElement(StyledCursor, _extends$4({
|
|
@@ -644,17 +647,19 @@ var Last = React__default.forwardRef(function (_ref, ref) {
|
|
|
644
647
|
type: "last"
|
|
645
648
|
}, React__default.createElement(SvgChevronDoubleRightStroke, null)));
|
|
646
649
|
});
|
|
647
|
-
|
|
650
|
+
LastComponent.displayName = 'CursorPagination.Last';
|
|
651
|
+
var Last = LastComponent;
|
|
648
652
|
|
|
649
|
-
var
|
|
653
|
+
var CursorPaginationComponent = forwardRef(function (props, ref) {
|
|
650
654
|
return React__default.createElement(StyledCursorPagination, _extends$4({
|
|
651
655
|
ref: ref
|
|
652
656
|
}, props));
|
|
653
657
|
});
|
|
658
|
+
CursorPaginationComponent.displayName = 'CursorPagination';
|
|
659
|
+
var CursorPagination = CursorPaginationComponent;
|
|
654
660
|
CursorPagination.First = First;
|
|
655
661
|
CursorPagination.Next = Next;
|
|
656
662
|
CursorPagination.Previous = Previous;
|
|
657
663
|
CursorPagination.Last = Last;
|
|
658
|
-
CursorPagination.displayName = 'CursorPagination';
|
|
659
664
|
|
|
660
665
|
export { CursorPagination, Pagination };
|
|
@@ -4,19 +4,18 @@
|
|
|
4
4
|
* Use of this source code is governed under the Apache License, Version 2.0
|
|
5
5
|
* found at http://www.apache.org/licenses/LICENSE-2.0.
|
|
6
6
|
*/
|
|
7
|
-
import React
|
|
7
|
+
import React from 'react';
|
|
8
8
|
import { First } from './components/First';
|
|
9
9
|
import { Next } from './components/Next';
|
|
10
10
|
import { Previous } from './components/Previous';
|
|
11
11
|
import { Last } from './components/Last';
|
|
12
|
-
|
|
13
|
-
First: typeof First;
|
|
14
|
-
Next: typeof Next;
|
|
15
|
-
Previous: typeof Previous;
|
|
16
|
-
Last: typeof Last;
|
|
17
|
-
}
|
|
12
|
+
export declare const CursorPaginationComponent: React.ForwardRefExoticComponent<React.HTMLAttributes<HTMLElement> & React.RefAttributes<HTMLElement>>;
|
|
18
13
|
/**
|
|
19
14
|
* @extends HTMLAttributes<HTMLElement>
|
|
20
15
|
*/
|
|
21
|
-
export declare const CursorPagination:
|
|
22
|
-
|
|
16
|
+
export declare const CursorPagination: React.ForwardRefExoticComponent<React.HTMLAttributes<HTMLElement> & React.RefAttributes<HTMLElement>> & {
|
|
17
|
+
First: typeof First;
|
|
18
|
+
Last: typeof Last;
|
|
19
|
+
Next: typeof Next;
|
|
20
|
+
Previous: typeof Previous;
|
|
21
|
+
};
|
|
@@ -5,4 +5,7 @@
|
|
|
5
5
|
* found at http://www.apache.org/licenses/LICENSE-2.0.
|
|
6
6
|
*/
|
|
7
7
|
import React from 'react';
|
|
8
|
+
/**
|
|
9
|
+
* @extends ButtonHTMLAttributes<HTMLButtonElement>
|
|
10
|
+
*/
|
|
8
11
|
export declare const First: React.ForwardRefExoticComponent<React.ButtonHTMLAttributes<HTMLButtonElement> & React.RefAttributes<HTMLButtonElement>>;
|
|
@@ -5,4 +5,8 @@
|
|
|
5
5
|
* found at http://www.apache.org/licenses/LICENSE-2.0.
|
|
6
6
|
*/
|
|
7
7
|
import React from 'react';
|
|
8
|
+
export declare const LastComponent: React.ForwardRefExoticComponent<React.ButtonHTMLAttributes<HTMLButtonElement> & React.RefAttributes<HTMLButtonElement>>;
|
|
9
|
+
/**
|
|
10
|
+
* @extends ButtonHTMLAttributes<HTMLButtonElement>
|
|
11
|
+
*/
|
|
8
12
|
export declare const Last: React.ForwardRefExoticComponent<React.ButtonHTMLAttributes<HTMLButtonElement> & React.RefAttributes<HTMLButtonElement>>;
|
|
@@ -5,4 +5,8 @@
|
|
|
5
5
|
* found at http://www.apache.org/licenses/LICENSE-2.0.
|
|
6
6
|
*/
|
|
7
7
|
import React from 'react';
|
|
8
|
+
export declare const NextComponent: React.ForwardRefExoticComponent<React.ButtonHTMLAttributes<HTMLButtonElement> & React.RefAttributes<HTMLButtonElement>>;
|
|
9
|
+
/**
|
|
10
|
+
* @extends ButtonHTMLAttributes<HTMLButtonElement>
|
|
11
|
+
*/
|
|
8
12
|
export declare const Next: React.ForwardRefExoticComponent<React.ButtonHTMLAttributes<HTMLButtonElement> & React.RefAttributes<HTMLButtonElement>>;
|
|
@@ -5,4 +5,8 @@
|
|
|
5
5
|
* found at http://www.apache.org/licenses/LICENSE-2.0.
|
|
6
6
|
*/
|
|
7
7
|
import React from 'react';
|
|
8
|
+
export declare const PreviousComponent: React.ForwardRefExoticComponent<React.ButtonHTMLAttributes<HTMLButtonElement> & React.RefAttributes<HTMLButtonElement>>;
|
|
9
|
+
/**
|
|
10
|
+
* @extends ButtonHTMLAttributes<HTMLButtonElement>
|
|
11
|
+
*/
|
|
8
12
|
export declare const Previous: React.ForwardRefExoticComponent<React.ButtonHTMLAttributes<HTMLButtonElement> & React.RefAttributes<HTMLButtonElement>>;
|
|
@@ -33,14 +33,13 @@ export interface IPaginationProps extends Omit<HTMLAttributes<HTMLUListElement>,
|
|
|
33
33
|
/**
|
|
34
34
|
* Applies localized labels, test attributes, etc. to individual pages
|
|
35
35
|
*
|
|
36
|
-
* @param {string} pageType The type of the page accepting the props
|
|
37
|
-
*
|
|
36
|
+
* @param {string} pageType The type of the page accepting the props; one of:
|
|
37
|
+
* "previous", "gap", "page", "next"
|
|
38
38
|
* @param {any} props Default page props to transform
|
|
39
39
|
*/
|
|
40
40
|
transformPageProps?: (pageType: PAGE_TYPE, props: any) => any;
|
|
41
41
|
}
|
|
42
|
-
declare const _default: React.FC<IPaginationProps & React.RefAttributes<HTMLUListElement>>;
|
|
43
42
|
/**
|
|
44
43
|
* @extends HTMLAttributes<HTMLUListElement>
|
|
45
44
|
*/
|
|
46
|
-
export
|
|
45
|
+
export declare const Pagination: React.ForwardRefExoticComponent<IPaginationProps & React.RefAttributes<HTMLUListElement>>;
|
package/dist/typings/index.d.ts
CHANGED
|
@@ -4,6 +4,6 @@
|
|
|
4
4
|
* Use of this source code is governed under the Apache License, Version 2.0
|
|
5
5
|
* found at http://www.apache.org/licenses/LICENSE-2.0.
|
|
6
6
|
*/
|
|
7
|
-
export {
|
|
7
|
+
export { Pagination } from './elements/Pagination/Pagination';
|
|
8
8
|
export type { IPaginationProps, PAGE_TYPE } from './elements/Pagination/Pagination';
|
|
9
9
|
export { CursorPagination } from './elements/CursorPagination/CursorPagination';
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@zendeskgarden/react-pagination",
|
|
3
|
-
"version": "8.
|
|
3
|
+
"version": "8.48.0",
|
|
4
4
|
"description": "Components relating to pagination in the Garden Design System",
|
|
5
5
|
"license": "Apache-2.0",
|
|
6
6
|
"author": "Zendesk Garden <garden@zendesk.com>",
|
|
@@ -33,7 +33,7 @@
|
|
|
33
33
|
"styled-components": "^4.2.0 || ^5.0.0"
|
|
34
34
|
},
|
|
35
35
|
"devDependencies": {
|
|
36
|
-
"@zendeskgarden/react-theming": "^8.
|
|
36
|
+
"@zendeskgarden/react-theming": "^8.48.0",
|
|
37
37
|
"@zendeskgarden/svg-icons": "6.30.2"
|
|
38
38
|
},
|
|
39
39
|
"keywords": [
|
|
@@ -46,5 +46,5 @@
|
|
|
46
46
|
"access": "public"
|
|
47
47
|
},
|
|
48
48
|
"zendeskgarden:src": "src/index.ts",
|
|
49
|
-
"gitHead": "
|
|
49
|
+
"gitHead": "75f36aee62043004650c3eb2e1583b98a87d71f8"
|
|
50
50
|
}
|