@zendeskgarden/react-pagination 8.75.1 → 8.76.1

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 (26) hide show
  1. package/dist/esm/elements/CursorPagination/CursorPagination.js +30 -0
  2. package/dist/esm/elements/CursorPagination/components/First.js +31 -0
  3. package/dist/esm/elements/CursorPagination/components/Last.js +32 -0
  4. package/dist/esm/elements/CursorPagination/components/Next.js +32 -0
  5. package/dist/esm/elements/CursorPagination/components/Previous.js +32 -0
  6. package/dist/esm/elements/Pagination/Pagination.js +208 -0
  7. package/dist/esm/elements/Pagination/components/Gap.js +22 -0
  8. package/dist/esm/elements/Pagination/components/Next.js +31 -0
  9. package/dist/esm/elements/Pagination/components/Page.js +28 -0
  10. package/dist/esm/elements/Pagination/components/Previous.js +31 -0
  11. package/dist/esm/index.js +8 -0
  12. package/dist/esm/node_modules/@zendeskgarden/svg-icons/src/16/chevron-double-left-stroke.svg.js +25 -0
  13. package/dist/esm/node_modules/@zendeskgarden/svg-icons/src/16/chevron-double-right-stroke.svg.js +25 -0
  14. package/dist/esm/node_modules/@zendeskgarden/svg-icons/src/16/chevron-left-stroke.svg.js +25 -0
  15. package/dist/esm/node_modules/@zendeskgarden/svg-icons/src/16/chevron-right-stroke.svg.js +25 -0
  16. package/dist/esm/styled/CursorPagination/StyledCursor.js +24 -0
  17. package/dist/esm/styled/CursorPagination/StyledCursorPagination.js +22 -0
  18. package/dist/esm/styled/CursorPagination/StyledIcon.js +36 -0
  19. package/dist/esm/styled/Pagination/StyledGap.js +30 -0
  20. package/dist/esm/styled/Pagination/StyledNavigation.js +23 -0
  21. package/dist/esm/styled/Pagination/StyledPage.js +28 -0
  22. package/dist/esm/styled/Pagination/StyledPageBase.js +44 -0
  23. package/dist/esm/styled/Pagination/StyledPagination.js +22 -0
  24. package/dist/index.cjs.js +26 -42
  25. package/package.json +5 -5
  26. package/dist/index.esm.js +0 -530
@@ -0,0 +1,36 @@
1
+ /**
2
+ * Copyright Zendesk, Inc.
3
+ *
4
+ * Use of this source code is governed under the Apache License, Version 2.0
5
+ * found at http://www.apache.org/licenses/LICENSE-2.0.
6
+ */
7
+ import { cloneElement, Children } from 'react';
8
+ import styled, { css } from 'styled-components';
9
+ import { DEFAULT_THEME } from '@zendeskgarden/react-theming';
10
+
11
+ const marginStyles = props => {
12
+ const {
13
+ type,
14
+ theme
15
+ } = props;
16
+ const margin = theme.space.base;
17
+ if (theme.rtl) {
18
+ return css(["margin-", ":", "px;"], type === 'last' || type === 'next' ? 'right' : 'left', margin);
19
+ }
20
+ return css(["margin-", ":", "px;"], type === 'first' || type === 'previous' ? 'right' : 'left', margin);
21
+ };
22
+ const StyledIcon = styled(_ref => {
23
+ let {
24
+ children,
25
+ ...props
26
+ } = _ref;
27
+ return cloneElement(Children.only(children), props);
28
+ }).withConfig({
29
+ displayName: "StyledIcon",
30
+ componentId: "sc-2vzk6e-0"
31
+ })(["", " transform:", ";"], marginStyles, props => props.theme.rtl && 'rotate(180deg)');
32
+ StyledIcon.defaultProps = {
33
+ theme: DEFAULT_THEME
34
+ };
35
+
36
+ export { StyledIcon };
@@ -0,0 +1,30 @@
1
+ /**
2
+ * Copyright Zendesk, Inc.
3
+ *
4
+ * Use of this source code is governed under the Apache License, Version 2.0
5
+ * found at http://www.apache.org/licenses/LICENSE-2.0.
6
+ */
7
+ import styled, { css } from 'styled-components';
8
+ import { math } from 'polished';
9
+ import { retrieveComponentStyles, DEFAULT_THEME } from '@zendeskgarden/react-theming';
10
+ import { StyledPage } from './StyledPage.js';
11
+
12
+ const COMPONENT_ID = 'pagination.gap';
13
+ const sizeStyles = props => {
14
+ const shift = 2;
15
+ const marginTop = `-${shift}px`;
16
+ const fontSize = math(`${props.theme.fontSizes.md} + ${shift}`);
17
+ return css(["margin-top:", ";font-size:", ";"], marginTop, fontSize);
18
+ };
19
+ const StyledGap = styled(StyledPage).attrs({
20
+ 'data-garden-id': COMPONENT_ID,
21
+ 'data-garden-version': '8.76.1'
22
+ }).withConfig({
23
+ displayName: "StyledGap",
24
+ componentId: "sc-1hqjltf-0"
25
+ })(["cursor:default;", ";&:hover{background-color:transparent;color:inherit;}", ";"], props => sizeStyles(props), props => retrieveComponentStyles(COMPONENT_ID, props));
26
+ StyledGap.defaultProps = {
27
+ theme: DEFAULT_THEME
28
+ };
29
+
30
+ export { StyledGap };
@@ -0,0 +1,23 @@
1
+ /**
2
+ * Copyright Zendesk, Inc.
3
+ *
4
+ * Use of this source code is governed under the Apache License, Version 2.0
5
+ * found at http://www.apache.org/licenses/LICENSE-2.0.
6
+ */
7
+ import styled from 'styled-components';
8
+ import { retrieveComponentStyles, DEFAULT_THEME } from '@zendeskgarden/react-theming';
9
+ import { StyledPage } from './StyledPage.js';
10
+
11
+ const COMPONENT_ID = 'pagination.navigation';
12
+ const StyledNavigation = styled(StyledPage).attrs({
13
+ 'data-garden-id': COMPONENT_ID,
14
+ 'data-garden-version': '8.76.1'
15
+ }).withConfig({
16
+ displayName: "StyledNavigation",
17
+ componentId: "sc-184uuwe-0"
18
+ })(["display:flex;align-items:center;justify-content:center;", ";"], props => retrieveComponentStyles(COMPONENT_ID, props));
19
+ StyledNavigation.defaultProps = {
20
+ theme: DEFAULT_THEME
21
+ };
22
+
23
+ export { StyledNavigation };
@@ -0,0 +1,28 @@
1
+ /**
2
+ * Copyright Zendesk, Inc.
3
+ *
4
+ * Use of this source code is governed under the Apache License, Version 2.0
5
+ * found at http://www.apache.org/licenses/LICENSE-2.0.
6
+ */
7
+ import styled, { css } from 'styled-components';
8
+ import { math } from 'polished';
9
+ import { retrieveComponentStyles, DEFAULT_THEME } from '@zendeskgarden/react-theming';
10
+ import { StyledPageBase } from './StyledPageBase.js';
11
+
12
+ const COMPONENT_ID = 'pagination.page';
13
+ const sizeStyles = props => {
14
+ const height = `${props.theme.space.base * 8}px`;
15
+ return css(["min-width:", ";max-width:", ";&[aria-current='true']{max-width:none;}"], height, math(`${height} * 2`));
16
+ };
17
+ const StyledPage = styled(StyledPageBase).attrs({
18
+ 'data-garden-id': COMPONENT_ID,
19
+ 'data-garden-version': '8.76.1'
20
+ }).withConfig({
21
+ displayName: "StyledPage",
22
+ componentId: "sc-1k0een3-0"
23
+ })(["margin-left:", ";", ";&[aria-current=\"true\"]{font-weight:", ";}&", "{margin-left:0;}", ";"], props => `${props.theme.space.base}px`, props => sizeStyles(props), props => props.theme.fontWeights.semibold, props => props.theme.rtl ? ':last-of-type' : ':first-of-type', props => retrieveComponentStyles(COMPONENT_ID, props));
24
+ StyledPage.defaultProps = {
25
+ theme: DEFAULT_THEME
26
+ };
27
+
28
+ export { StyledPage };
@@ -0,0 +1,44 @@
1
+ /**
2
+ * Copyright Zendesk, Inc.
3
+ *
4
+ * Use of this source code is governed under the Apache License, Version 2.0
5
+ * found at http://www.apache.org/licenses/LICENSE-2.0.
6
+ */
7
+ import styled, { css } from 'styled-components';
8
+ import { retrieveComponentStyles, DEFAULT_THEME, getColorV8, focusStyles, getLineHeight } from '@zendeskgarden/react-theming';
9
+
10
+ const COMPONENT_ID = 'pagination.page';
11
+ const colorStyles = props => {
12
+ const defaultColor = getColorV8('neutralHue', 600, props.theme);
13
+ const hoverForegroundColor = getColorV8('neutralHue', 700, props.theme);
14
+ const hoverBackgroundColor = getColorV8('primaryHue', 600, props.theme, 0.08);
15
+ const activeForegroundColor = getColorV8('neutralHue', 800, props.theme);
16
+ const activeBackgroundColor = getColorV8('primaryHue', 600, props.theme, 0.2);
17
+ const currentForegroundColor = activeForegroundColor;
18
+ const currentBackgroundColor = hoverBackgroundColor;
19
+ const currentHoverBackgroundColor = getColorV8('primaryHue', 600, props.theme, 0.16);
20
+ const currentActiveBackgroundColor = getColorV8('primaryHue', 600, props.theme, 0.28);
21
+ return css(["color:", ";&:hover{background-color:", ";color:", ";}", " &:active,&:focus-visible:active,&[data-garden-focus-visible]:active{background-color:", ";color:", ";}&[aria-current='true']{background-color:", ";color:", ";}&[aria-current='true']:hover{background-color:", ";}&[aria-current='true']:active{background-color:", ";}:disabled,[aria-disabled='true']{background-color:transparent;color:", ";}"], defaultColor, hoverBackgroundColor, hoverForegroundColor, focusStyles({
22
+ theme: props.theme,
23
+ inset: true
24
+ }), activeBackgroundColor, activeForegroundColor, currentBackgroundColor, currentForegroundColor, currentHoverBackgroundColor, currentActiveBackgroundColor, getColorV8('grey', 300, props.theme));
25
+ };
26
+ const sizeStyles = props => {
27
+ const fontSize = props.theme.fontSizes.md;
28
+ const height = `${props.theme.space.base * 8}px`;
29
+ const lineHeight = getLineHeight(height, fontSize);
30
+ const padding = `${props.theme.space.base * 1.5}px`;
31
+ return css(["padding:0 ", ";height:", ";line-height:", ";font-size:", ";"], padding, height, lineHeight, fontSize);
32
+ };
33
+ const StyledPageBase = styled.li.attrs({
34
+ 'data-garden-id': COMPONENT_ID,
35
+ 'data-garden-version': '8.76.1'
36
+ }).withConfig({
37
+ displayName: "StyledPageBase",
38
+ componentId: "sc-lw1w9j-0"
39
+ })(["box-sizing:border-box;display:inline-block;transition:box-shadow 0.1s ease-in-out,background-color 0.25s ease-in-out,color 0.25s ease-in-out;visibility:", ";border-radius:", ";cursor:pointer;overflow:hidden;text-align:center;text-overflow:ellipsis;user-select:none;", ";&[aria-current='true']{font-weight:", ";}:disabled,[aria-disabled='true']{cursor:default;}", ";", ";"], props => props.hidden && 'hidden', props => props.theme.borderRadii.md, props => sizeStyles(props), props => props.theme.fontWeights.semibold, props => colorStyles(props), props => retrieveComponentStyles(COMPONENT_ID, props));
40
+ StyledPageBase.defaultProps = {
41
+ theme: DEFAULT_THEME
42
+ };
43
+
44
+ export { StyledPageBase };
@@ -0,0 +1,22 @@
1
+ /**
2
+ * Copyright Zendesk, Inc.
3
+ *
4
+ * Use of this source code is governed under the Apache License, Version 2.0
5
+ * found at http://www.apache.org/licenses/LICENSE-2.0.
6
+ */
7
+ import styled from 'styled-components';
8
+ import { getColorV8, retrieveComponentStyles, DEFAULT_THEME } from '@zendeskgarden/react-theming';
9
+
10
+ const COMPONENT_ID = 'pagination.pagination_view';
11
+ const StyledPagination = styled.ul.attrs({
12
+ 'data-garden-id': COMPONENT_ID,
13
+ 'data-garden-version': '8.76.1'
14
+ }).withConfig({
15
+ displayName: "StyledPagination",
16
+ componentId: "sc-1b7nye9-0"
17
+ })(["direction:", ";display:flex;justify-content:center;margin:0;padding:0;white-space:nowrap;color:", ";:focus{outline:none;}", ";"], props => props.theme.rtl && 'rtl', props => getColorV8('neutralHue', 600, props.theme), props => retrieveComponentStyles(COMPONENT_ID, props));
18
+ StyledPagination.defaultProps = {
19
+ theme: DEFAULT_THEME
20
+ };
21
+
22
+ export { StyledPagination };
package/dist/index.cjs.js CHANGED
@@ -1,10 +1,9 @@
1
1
  /**
2
- * Copyright Zendesk, Inc.
3
- *
4
- * Use of this source code is governed under the Apache License, Version 2.0
5
- * found at http://www.apache.org/licenses/LICENSE-2.0.
6
- */
7
-
2
+ * Copyright Zendesk, Inc.
3
+ *
4
+ * Use of this source code is governed under the Apache License, Version 2.0
5
+ * found at http://www.apache.org/licenses/LICENSE-2.0.
6
+ */
8
7
  'use strict';
9
8
 
10
9
  var React = require('react');
@@ -39,25 +38,10 @@ var React__namespace = /*#__PURE__*/_interopNamespace(React);
39
38
  var PropTypes__default = /*#__PURE__*/_interopDefault(PropTypes);
40
39
  var styled__default = /*#__PURE__*/_interopDefault(styled);
41
40
 
42
- function _extends$4() {
43
- _extends$4 = Object.assign ? Object.assign.bind() : function (target) {
44
- for (var i = 1; i < arguments.length; i++) {
45
- var source = arguments[i];
46
- for (var key in source) {
47
- if (Object.prototype.hasOwnProperty.call(source, key)) {
48
- target[key] = source[key];
49
- }
50
- }
51
- }
52
- return target;
53
- };
54
- return _extends$4.apply(this, arguments);
55
- }
56
-
57
41
  const COMPONENT_ID$6 = 'pagination.pagination_view';
58
42
  const StyledPagination = styled__default.default.ul.attrs({
59
43
  'data-garden-id': COMPONENT_ID$6,
60
- 'data-garden-version': '8.75.1'
44
+ 'data-garden-version': '8.76.1'
61
45
  }).withConfig({
62
46
  displayName: "StyledPagination",
63
47
  componentId: "sc-1b7nye9-0"
@@ -91,7 +75,7 @@ const sizeStyles$2 = props => {
91
75
  };
92
76
  const StyledPageBase = styled__default.default.li.attrs({
93
77
  'data-garden-id': COMPONENT_ID$5,
94
- 'data-garden-version': '8.75.1'
78
+ 'data-garden-version': '8.76.1'
95
79
  }).withConfig({
96
80
  displayName: "StyledPageBase",
97
81
  componentId: "sc-lw1w9j-0"
@@ -107,7 +91,7 @@ const sizeStyles$1 = props => {
107
91
  };
108
92
  const StyledPage = styled__default.default(StyledPageBase).attrs({
109
93
  'data-garden-id': COMPONENT_ID$4,
110
- 'data-garden-version': '8.75.1'
94
+ 'data-garden-version': '8.76.1'
111
95
  }).withConfig({
112
96
  displayName: "StyledPage",
113
97
  componentId: "sc-1k0een3-0"
@@ -119,7 +103,7 @@ StyledPage.defaultProps = {
119
103
  const COMPONENT_ID$3 = 'cursor_pagination';
120
104
  const StyledCursorPagination = styled__default.default.nav.attrs({
121
105
  'data-garden-id': COMPONENT_ID$3,
122
- 'data-garden-version': '8.75.1'
106
+ 'data-garden-version': '8.76.1'
123
107
  }).withConfig({
124
108
  displayName: "StyledCursorPagination",
125
109
  componentId: "sc-qmfecg-0"
@@ -131,7 +115,7 @@ StyledCursorPagination.defaultProps = {
131
115
  const COMPONENT_ID$2 = 'cursor_pagination.cursor';
132
116
  const StyledCursor = styled__default.default(StyledPageBase).attrs({
133
117
  'data-garden-id': COMPONENT_ID$2,
134
- 'data-garden-version': '8.75.1',
118
+ 'data-garden-version': '8.76.1',
135
119
  as: 'button'
136
120
  }).withConfig({
137
121
  displayName: "StyledCursor",
@@ -175,7 +159,7 @@ const sizeStyles = props => {
175
159
  };
176
160
  const StyledGap = styled__default.default(StyledPage).attrs({
177
161
  'data-garden-id': COMPONENT_ID$1,
178
- 'data-garden-version': '8.75.1'
162
+ 'data-garden-version': '8.76.1'
179
163
  }).withConfig({
180
164
  displayName: "StyledGap",
181
165
  componentId: "sc-1hqjltf-0"
@@ -187,7 +171,7 @@ StyledGap.defaultProps = {
187
171
  const COMPONENT_ID = 'pagination.navigation';
188
172
  const StyledNavigation = styled__default.default(StyledPage).attrs({
189
173
  'data-garden-id': COMPONENT_ID,
190
- 'data-garden-version': '8.75.1'
174
+ 'data-garden-version': '8.76.1'
191
175
  }).withConfig({
192
176
  displayName: "StyledNavigation",
193
177
  componentId: "sc-184uuwe-0"
@@ -231,7 +215,7 @@ var SvgChevronRightStroke = function SvgChevronRightStroke(props) {
231
215
  const PreviousComponent$1 = React.forwardRef((props, ref) => {
232
216
  const ariaLabel = reactTheming.useText(PreviousComponent$1, props, 'aria-label', 'Previous page');
233
217
  const theme = React.useContext(styled.ThemeContext);
234
- return React__namespace.default.createElement(StyledNavigation, _extends$4({}, props, {
218
+ return React__namespace.default.createElement(StyledNavigation, Object.assign({}, props, {
235
219
  "aria-label": ariaLabel,
236
220
  ref: ref
237
221
  }), theme.rtl ? React__namespace.default.createElement(SvgChevronRightStroke, null) : React__namespace.default.createElement(SvgChevronLeftStroke, null));
@@ -242,7 +226,7 @@ const Previous$1 = PreviousComponent$1;
242
226
  const NextComponent$1 = React.forwardRef((props, ref) => {
243
227
  const ariaLabel = reactTheming.useText(NextComponent$1, props, 'aria-label', 'Next page');
244
228
  const theme = React.useContext(styled.ThemeContext);
245
- return React__namespace.default.createElement(StyledNavigation, _extends$4({}, props, {
229
+ return React__namespace.default.createElement(StyledNavigation, Object.assign({}, props, {
246
230
  "aria-label": ariaLabel,
247
231
  ref: ref
248
232
  }), theme.rtl ? React__namespace.default.createElement(SvgChevronLeftStroke, null) : React__namespace.default.createElement(SvgChevronRightStroke, null));
@@ -253,7 +237,7 @@ const Next$1 = NextComponent$1;
253
237
  const PageComponent = React.forwardRef((props, ref) => {
254
238
  const text = props['aria-current'] ? `Current page, page ${props.children}` : `Page ${props.children}`;
255
239
  const ariaLabel = reactTheming.useText(PageComponent, props, 'aria-label', text);
256
- return React__namespace.default.createElement(StyledPage, _extends$4({}, props, {
240
+ return React__namespace.default.createElement(StyledPage, Object.assign({}, props, {
257
241
  "aria-label": ariaLabel,
258
242
  ref: ref
259
243
  }));
@@ -261,7 +245,7 @@ const PageComponent = React.forwardRef((props, ref) => {
261
245
  PageComponent.displayName = 'Pagination.Page';
262
246
  const Page = PageComponent;
263
247
 
264
- const GapComponent = React.forwardRef((props, ref) => React__namespace.default.createElement(StyledGap, _extends$4({}, props, {
248
+ const GapComponent = React.forwardRef((props, ref) => React__namespace.default.createElement(StyledGap, Object.assign({}, props, {
265
249
  ref: ref
266
250
  }), "\u2026"));
267
251
  GapComponent.displayName = 'Pagination.Gap';
@@ -339,7 +323,7 @@ const Pagination = React.forwardRef((_ref, ref) => {
339
323
  }),
340
324
  'aria-label': undefined
341
325
  };
342
- return React__namespace.default.createElement(Previous$1, _extends$4({
326
+ return React__namespace.default.createElement(Previous$1, Object.assign({
343
327
  isFocused: focusedItem === PREVIOUS_KEY
344
328
  }, getTransformedProps('previous', props), {
345
329
  ref: focusRef
@@ -360,13 +344,13 @@ const Pagination = React.forwardRef((_ref, ref) => {
360
344
  }),
361
345
  'aria-label': undefined
362
346
  };
363
- return React__namespace.default.createElement(Next$1, _extends$4({
347
+ return React__namespace.default.createElement(Next$1, Object.assign({
364
348
  isFocused: focusedItem === NEXT_KEY
365
349
  }, getTransformedProps('next', props), {
366
350
  ref: focusRef
367
351
  }));
368
352
  };
369
- const createGap = pageIndex => React__namespace.default.createElement(Gap, _extends$4({
353
+ const createGap = pageIndex => React__namespace.default.createElement(Gap, Object.assign({
370
354
  key: `gap-${pageIndex}`
371
355
  }, getTransformedProps('gap')));
372
356
  const createPage = pageIndex => {
@@ -381,7 +365,7 @@ const Pagination = React.forwardRef((_ref, ref) => {
381
365
  'aria-label': undefined,
382
366
  title: pageIndex
383
367
  };
384
- return React__namespace.default.createElement(Page, _extends$4({
368
+ return React__namespace.default.createElement(Page, Object.assign({
385
369
  key: pageIndex
386
370
  }, getTransformedProps('page', props, pageIndex), {
387
371
  ref: focusRef
@@ -431,7 +415,7 @@ const Pagination = React.forwardRef((_ref, ref) => {
431
415
  }
432
416
  return pages;
433
417
  };
434
- return React__namespace.default.createElement(StyledPagination, _extends$4({}, getContainerProps({
418
+ return React__namespace.default.createElement(StyledPagination, Object.assign({}, getContainerProps({
435
419
  role: null
436
420
  }), otherProps, {
437
421
  ref: ref
@@ -472,7 +456,7 @@ const FirstComponent = React.forwardRef((_ref, ref) => {
472
456
  children,
473
457
  ...other
474
458
  } = _ref;
475
- return React__namespace.default.createElement(StyledCursor, _extends$4({
459
+ return React__namespace.default.createElement(StyledCursor, Object.assign({
476
460
  ref: ref
477
461
  }, other), React__namespace.default.createElement(StyledIcon, {
478
462
  type: "first"
@@ -486,7 +470,7 @@ const NextComponent = React.forwardRef((_ref, ref) => {
486
470
  children,
487
471
  ...other
488
472
  } = _ref;
489
- return React__namespace.default.createElement(StyledCursor, _extends$4({
473
+ return React__namespace.default.createElement(StyledCursor, Object.assign({
490
474
  ref: ref,
491
475
  as: "button"
492
476
  }, other), React__namespace.default.createElement("span", null, children), React__namespace.default.createElement(StyledIcon, {
@@ -501,7 +485,7 @@ const PreviousComponent = React.forwardRef((_ref, ref) => {
501
485
  children,
502
486
  ...other
503
487
  } = _ref;
504
- return React__namespace.default.createElement(StyledCursor, _extends$4({
488
+ return React__namespace.default.createElement(StyledCursor, Object.assign({
505
489
  ref: ref,
506
490
  as: "button"
507
491
  }, other), React__namespace.default.createElement(StyledIcon, {
@@ -532,7 +516,7 @@ const LastComponent = React.forwardRef((_ref, ref) => {
532
516
  children,
533
517
  ...other
534
518
  } = _ref;
535
- return React__namespace.default.createElement(StyledCursor, _extends$4({
519
+ return React__namespace.default.createElement(StyledCursor, Object.assign({
536
520
  ref: ref,
537
521
  as: "button"
538
522
  }, other), React__namespace.default.createElement("span", null, children), React__namespace.default.createElement(StyledIcon, {
@@ -542,7 +526,7 @@ const LastComponent = React.forwardRef((_ref, ref) => {
542
526
  LastComponent.displayName = 'CursorPagination.Last';
543
527
  const Last = LastComponent;
544
528
 
545
- const CursorPaginationComponent = React.forwardRef((props, ref) => React__namespace.default.createElement(StyledCursorPagination, _extends$4({
529
+ const CursorPaginationComponent = React.forwardRef((props, ref) => React__namespace.default.createElement(StyledCursorPagination, Object.assign({
546
530
  ref: ref
547
531
  }, props)));
548
532
  CursorPaginationComponent.displayName = 'CursorPagination';
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@zendeskgarden/react-pagination",
3
- "version": "8.75.1",
3
+ "version": "8.76.1",
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>",
@@ -10,7 +10,7 @@
10
10
  "url": "https://github.com/zendeskgarden/react-components/issues"
11
11
  },
12
12
  "main": "dist/index.cjs.js",
13
- "module": "dist/index.esm.js",
13
+ "module": "dist/esm/index.js",
14
14
  "files": [
15
15
  "dist"
16
16
  ],
@@ -27,13 +27,13 @@
27
27
  "prop-types": "^15.5.7"
28
28
  },
29
29
  "peerDependencies": {
30
- "@zendeskgarden/react-theming": "^8.67.0",
30
+ "@zendeskgarden/react-theming": "^8.75.0",
31
31
  "react": ">=16.8.0",
32
32
  "react-dom": ">=16.8.0",
33
33
  "styled-components": "^4.2.0 || ^5.0.0"
34
34
  },
35
35
  "devDependencies": {
36
- "@zendeskgarden/react-theming": "^8.75.1",
36
+ "@zendeskgarden/react-theming": "^8.76.1",
37
37
  "@zendeskgarden/svg-icons": "7.0.0"
38
38
  },
39
39
  "keywords": [
@@ -46,5 +46,5 @@
46
46
  "access": "public"
47
47
  },
48
48
  "zendeskgarden:src": "src/index.ts",
49
- "gitHead": "8e2bb36bcfef722db47a135fc987f72597be5000"
49
+ "gitHead": "8351e305688a65273cb18741c0800be8027cf878"
50
50
  }