@zendeskgarden/react-pagination 9.4.0 → 9.5.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.
@@ -5,17 +5,17 @@
5
5
  * found at http://www.apache.org/licenses/LICENSE-2.0.
6
6
  */
7
7
  import styled from 'styled-components';
8
- import { retrieveComponentStyles } from '@zendeskgarden/react-theming';
8
+ import { componentStyles } from '@zendeskgarden/react-theming';
9
9
  import { StyledPageBase } from '../OffsetPagination/StyledPageBase.js';
10
10
 
11
11
  const COMPONENT_ID = 'cursor_pagination.cursor';
12
12
  const StyledCursor = styled(StyledPageBase).attrs({
13
13
  'data-garden-id': COMPONENT_ID,
14
- 'data-garden-version': '9.4.0',
14
+ 'data-garden-version': '9.5.0',
15
15
  as: 'button'
16
16
  }).withConfig({
17
17
  displayName: "StyledCursor",
18
18
  componentId: "sc-507ee-0"
19
- })(["display:flex;align-items:center;border:none;background:transparent;padding:", ";overflow:visible;&:not(", "-of-type){margin-right:", "px;}", ";"], props => `0px ${props.theme.space.base * 2}px`, props => props.theme.rtl ? ':first' : ':last', props => props.theme.space.base, props => retrieveComponentStyles(COMPONENT_ID, props));
19
+ })(["display:flex;align-items:center;border:none;background:transparent;padding:", ";overflow:visible;&:not(", "-of-type){margin-right:", "px;}", ";"], props => `0px ${props.theme.space.base * 2}px`, props => props.theme.rtl ? ':first' : ':last', props => props.theme.space.base, componentStyles);
20
20
 
21
21
  export { StyledCursor };
@@ -5,15 +5,15 @@
5
5
  * found at http://www.apache.org/licenses/LICENSE-2.0.
6
6
  */
7
7
  import styled from 'styled-components';
8
- import { retrieveComponentStyles } from '@zendeskgarden/react-theming';
8
+ import { componentStyles } from '@zendeskgarden/react-theming';
9
9
 
10
10
  const COMPONENT_ID = 'cursor_pagination';
11
11
  const StyledCursorPagination = styled.nav.attrs({
12
12
  'data-garden-id': COMPONENT_ID,
13
- 'data-garden-version': '9.4.0'
13
+ 'data-garden-version': '9.5.0'
14
14
  }).withConfig({
15
15
  displayName: "StyledCursorPagination",
16
16
  componentId: "sc-qmfecg-0"
17
- })(["display:flex;justify-content:center;", ";"], props => retrieveComponentStyles(COMPONENT_ID, props));
17
+ })(["display:flex;justify-content:center;", ";"], componentStyles);
18
18
 
19
19
  export { StyledCursorPagination };
@@ -6,7 +6,7 @@
6
6
  */
7
7
  import styled, { css } from 'styled-components';
8
8
  import { math } from 'polished';
9
- import { retrieveComponentStyles, getLineHeight, getColor } from '@zendeskgarden/react-theming';
9
+ import { componentStyles, getLineHeight, getColor } from '@zendeskgarden/react-theming';
10
10
  import { StyledListItem } from './StyledListItem.js';
11
11
 
12
12
  const COMPONENT_ID = 'pagination.gap';
@@ -29,10 +29,10 @@ const colorStyles = _ref => {
29
29
  };
30
30
  const StyledGapListItem = styled(StyledListItem).attrs({
31
31
  'data-garden-id': COMPONENT_ID,
32
- 'data-garden-version': '9.4.0'
32
+ 'data-garden-version': '9.5.0'
33
33
  }).withConfig({
34
34
  displayName: "StyledGapListItem",
35
35
  componentId: "sc-10wd0iz-0"
36
- })(["display:inline-block;text-align:center;", ";", " &:hover{color:inherit;}", ";"], sizeStyles, colorStyles, props => retrieveComponentStyles(COMPONENT_ID, props));
36
+ })(["display:inline-block;text-align:center;", ";", " &:hover{color:inherit;}", ";"], sizeStyles, colorStyles, componentStyles);
37
37
 
38
38
  export { StyledGapListItem };
@@ -5,7 +5,7 @@
5
5
  * found at http://www.apache.org/licenses/LICENSE-2.0.
6
6
  */
7
7
  import styled, { css } from 'styled-components';
8
- import { retrieveComponentStyles, getColor } from '@zendeskgarden/react-theming';
8
+ import { componentStyles, getColor } from '@zendeskgarden/react-theming';
9
9
 
10
10
  const COMPONENT_ID = 'pagination.list';
11
11
  const colorStyles = _ref => {
@@ -19,10 +19,10 @@ const colorStyles = _ref => {
19
19
  };
20
20
  const StyledList = styled.ul.attrs({
21
21
  'data-garden-id': COMPONENT_ID,
22
- 'data-garden-version': '9.4.0'
22
+ 'data-garden-version': '9.5.0'
23
23
  }).withConfig({
24
24
  displayName: "StyledList",
25
25
  componentId: "sc-1uz2jxo-0"
26
- })(["direction:", ";display:flex;justify-content:center;margin:0;padding:0;list-style:none;white-space:nowrap;", " &:focus{outline:none;}", ";"], p => p.theme.rtl && 'rtl', colorStyles, props => retrieveComponentStyles(COMPONENT_ID, props));
26
+ })(["direction:", ";display:flex;justify-content:center;margin:0;padding:0;list-style:none;white-space:nowrap;", " &:focus{outline:none;}", ";"], p => p.theme.rtl && 'rtl', colorStyles, componentStyles);
27
27
 
28
28
  export { StyledList };
@@ -5,15 +5,15 @@
5
5
  * found at http://www.apache.org/licenses/LICENSE-2.0.
6
6
  */
7
7
  import styled from 'styled-components';
8
- import { retrieveComponentStyles } from '@zendeskgarden/react-theming';
8
+ import { componentStyles } from '@zendeskgarden/react-theming';
9
9
 
10
10
  const COMPONENT_ID = 'pagination.list_item';
11
11
  const StyledListItem = styled.li.attrs({
12
12
  'data-garden-id': COMPONENT_ID,
13
- 'data-garden-version': '9.4.0'
13
+ 'data-garden-version': '9.5.0'
14
14
  }).withConfig({
15
15
  displayName: "StyledListItem",
16
16
  componentId: "sc-16j4sju-0"
17
- })(["box-sizing:border-box;margin-left:", ";user-select:none;&", "{margin-left:0;}", ";"], props => `${props.theme.space.base}px`, props => props.theme.rtl ? ':last-of-type' : ':first-of-type', props => retrieveComponentStyles(COMPONENT_ID, props));
17
+ })(["box-sizing:border-box;margin-left:", ";user-select:none;&", "{margin-left:0;}", ";"], props => `${props.theme.space.base}px`, props => props.theme.rtl ? ':last-of-type' : ':first-of-type', componentStyles);
18
18
 
19
19
  export { StyledListItem };
@@ -5,15 +5,15 @@
5
5
  * found at http://www.apache.org/licenses/LICENSE-2.0.
6
6
  */
7
7
  import styled from 'styled-components';
8
- import { retrieveComponentStyles } from '@zendeskgarden/react-theming';
8
+ import { componentStyles } from '@zendeskgarden/react-theming';
9
9
 
10
10
  const COMPONENT_ID = 'pagination.pagination_view';
11
11
  const StyledNav = styled.nav.attrs({
12
12
  'data-garden-id': COMPONENT_ID,
13
- 'data-garden-version': '9.4.0'
13
+ 'data-garden-version': '9.5.0'
14
14
  }).withConfig({
15
15
  displayName: "StyledNav",
16
16
  componentId: "sc-ppnpkw-0"
17
- })(["", ";"], props => retrieveComponentStyles(COMPONENT_ID, props));
17
+ })(["", ";"], componentStyles);
18
18
 
19
19
  export { StyledNav };
@@ -5,16 +5,16 @@
5
5
  * found at http://www.apache.org/licenses/LICENSE-2.0.
6
6
  */
7
7
  import styled from 'styled-components';
8
- import { retrieveComponentStyles } from '@zendeskgarden/react-theming';
8
+ import { componentStyles } from '@zendeskgarden/react-theming';
9
9
  import { StyledPage } from './StyledPage.js';
10
10
 
11
11
  const COMPONENT_ID = 'pagination.navigation';
12
12
  const StyledNavigation = styled(StyledPage).attrs({
13
13
  'data-garden-id': COMPONENT_ID,
14
- 'data-garden-version': '9.4.0'
14
+ 'data-garden-version': '9.5.0'
15
15
  }).withConfig({
16
16
  displayName: "StyledNavigation",
17
17
  componentId: "sc-1lpl8pp-0"
18
- })(["display:flex;align-items:center;justify-content:center;", ";"], props => retrieveComponentStyles(COMPONENT_ID, props));
18
+ })(["display:flex;align-items:center;justify-content:center;", ";"], componentStyles);
19
19
 
20
20
  export { StyledNavigation };
@@ -5,7 +5,7 @@
5
5
  * found at http://www.apache.org/licenses/LICENSE-2.0.
6
6
  */
7
7
  import styled, { css } from 'styled-components';
8
- import { retrieveComponentStyles } from '@zendeskgarden/react-theming';
8
+ import { componentStyles } from '@zendeskgarden/react-theming';
9
9
  import { StyledPageBase } from './StyledPageBase.js';
10
10
 
11
11
  const COMPONENT_ID = 'pagination.page';
@@ -15,10 +15,10 @@ const sizeStyles = props => {
15
15
  };
16
16
  const StyledPage = styled(StyledPageBase).attrs({
17
17
  'data-garden-id': COMPONENT_ID,
18
- 'data-garden-version': '9.4.0'
18
+ 'data-garden-version': '9.5.0'
19
19
  }).withConfig({
20
20
  displayName: "StyledPage",
21
21
  componentId: "sc-sxjfwy-0"
22
- })(["", ";&[aria-current=\"true\"]{font-weight:", ";}", ";"], props => sizeStyles(props), props => props.theme.fontWeights.semibold, props => retrieveComponentStyles(COMPONENT_ID, props));
22
+ })(["", ";&[aria-current=\"true\"]{font-weight:", ";}", ";"], props => sizeStyles(props), props => props.theme.fontWeights.semibold, componentStyles);
23
23
 
24
24
  export { StyledPage };
@@ -5,7 +5,7 @@
5
5
  * found at http://www.apache.org/licenses/LICENSE-2.0.
6
6
  */
7
7
  import styled, { css } from 'styled-components';
8
- import { retrieveComponentStyles, getColor, focusStyles, getLineHeight } from '@zendeskgarden/react-theming';
8
+ import { componentStyles, getColor, focusStyles, getLineHeight } from '@zendeskgarden/react-theming';
9
9
 
10
10
  const COMPONENT_ID = 'pagination.page';
11
11
  const colorStyles = _ref => {
@@ -81,10 +81,10 @@ const sizeStyles = props => {
81
81
  };
82
82
  const StyledPageBase = styled.button.attrs({
83
83
  'data-garden-id': COMPONENT_ID,
84
- 'data-garden-version': '9.4.0'
84
+ 'data-garden-version': '9.5.0'
85
85
  }).withConfig({
86
86
  displayName: "StyledPageBase",
87
87
  componentId: "sc-ttwj4u-0"
88
- })(["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;font-family:inherit;user-select:none;", ";&[aria-current='page']{font-weight:", ";}&::-moz-focus-inner{border:0;}&: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));
88
+ })(["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;font-family:inherit;user-select:none;", ";&[aria-current='page']{font-weight:", ";}&::-moz-focus-inner{border:0;}&: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), componentStyles);
89
89
 
90
90
  export { StyledPageBase };
package/dist/index.cjs.js CHANGED
@@ -49,20 +49,20 @@ const colorStyles$2 = _ref => {
49
49
  };
50
50
  const StyledList = styled__default.default.ul.attrs({
51
51
  'data-garden-id': COMPONENT_ID$8,
52
- 'data-garden-version': '9.4.0'
52
+ 'data-garden-version': '9.5.0'
53
53
  }).withConfig({
54
54
  displayName: "StyledList",
55
55
  componentId: "sc-1uz2jxo-0"
56
- })(["direction:", ";display:flex;justify-content:center;margin:0;padding:0;list-style:none;white-space:nowrap;", " &:focus{outline:none;}", ";"], p => p.theme.rtl && 'rtl', colorStyles$2, props => reactTheming.retrieveComponentStyles(COMPONENT_ID$8, props));
56
+ })(["direction:", ";display:flex;justify-content:center;margin:0;padding:0;list-style:none;white-space:nowrap;", " &:focus{outline:none;}", ";"], p => p.theme.rtl && 'rtl', colorStyles$2, reactTheming.componentStyles);
57
57
 
58
58
  const COMPONENT_ID$7 = 'pagination.list_item';
59
59
  const StyledListItem = styled__default.default.li.attrs({
60
60
  'data-garden-id': COMPONENT_ID$7,
61
- 'data-garden-version': '9.4.0'
61
+ 'data-garden-version': '9.5.0'
62
62
  }).withConfig({
63
63
  displayName: "StyledListItem",
64
64
  componentId: "sc-16j4sju-0"
65
- })(["box-sizing:border-box;margin-left:", ";user-select:none;&", "{margin-left:0;}", ";"], props => `${props.theme.space.base}px`, props => props.theme.rtl ? ':last-of-type' : ':first-of-type', props => reactTheming.retrieveComponentStyles(COMPONENT_ID$7, props));
65
+ })(["box-sizing:border-box;margin-left:", ";user-select:none;&", "{margin-left:0;}", ";"], props => `${props.theme.space.base}px`, props => props.theme.rtl ? ':last-of-type' : ':first-of-type', reactTheming.componentStyles);
66
66
 
67
67
  const COMPONENT_ID$6 = 'pagination.page';
68
68
  const colorStyles$1 = _ref => {
@@ -138,11 +138,11 @@ const sizeStyles$2 = props => {
138
138
  };
139
139
  const StyledPageBase = styled__default.default.button.attrs({
140
140
  'data-garden-id': COMPONENT_ID$6,
141
- 'data-garden-version': '9.4.0'
141
+ 'data-garden-version': '9.5.0'
142
142
  }).withConfig({
143
143
  displayName: "StyledPageBase",
144
144
  componentId: "sc-ttwj4u-0"
145
- })(["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;font-family:inherit;user-select:none;", ";&[aria-current='page']{font-weight:", ";}&::-moz-focus-inner{border:0;}&:disabled,[aria-disabled='true']{cursor:default;}", ";", ";"], props => props.hidden && 'hidden', props => props.theme.borderRadii.md, props => sizeStyles$2(props), props => props.theme.fontWeights.semibold, props => colorStyles$1(props), props => reactTheming.retrieveComponentStyles(COMPONENT_ID$6, props));
145
+ })(["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;font-family:inherit;user-select:none;", ";&[aria-current='page']{font-weight:", ";}&::-moz-focus-inner{border:0;}&:disabled,[aria-disabled='true']{cursor:default;}", ";", ";"], props => props.hidden && 'hidden', props => props.theme.borderRadii.md, props => sizeStyles$2(props), props => props.theme.fontWeights.semibold, props => colorStyles$1(props), reactTheming.componentStyles);
146
146
 
147
147
  const COMPONENT_ID$5 = 'pagination.page';
148
148
  const sizeStyles$1 = props => {
@@ -151,30 +151,30 @@ const sizeStyles$1 = props => {
151
151
  };
152
152
  const StyledPage = styled__default.default(StyledPageBase).attrs({
153
153
  'data-garden-id': COMPONENT_ID$5,
154
- 'data-garden-version': '9.4.0'
154
+ 'data-garden-version': '9.5.0'
155
155
  }).withConfig({
156
156
  displayName: "StyledPage",
157
157
  componentId: "sc-sxjfwy-0"
158
- })(["", ";&[aria-current=\"true\"]{font-weight:", ";}", ";"], props => sizeStyles$1(props), props => props.theme.fontWeights.semibold, props => reactTheming.retrieveComponentStyles(COMPONENT_ID$5, props));
158
+ })(["", ";&[aria-current=\"true\"]{font-weight:", ";}", ";"], props => sizeStyles$1(props), props => props.theme.fontWeights.semibold, reactTheming.componentStyles);
159
159
 
160
160
  const COMPONENT_ID$4 = 'cursor_pagination';
161
161
  const StyledCursorPagination = styled__default.default.nav.attrs({
162
162
  'data-garden-id': COMPONENT_ID$4,
163
- 'data-garden-version': '9.4.0'
163
+ 'data-garden-version': '9.5.0'
164
164
  }).withConfig({
165
165
  displayName: "StyledCursorPagination",
166
166
  componentId: "sc-qmfecg-0"
167
- })(["display:flex;justify-content:center;", ";"], props => reactTheming.retrieveComponentStyles(COMPONENT_ID$4, props));
167
+ })(["display:flex;justify-content:center;", ";"], reactTheming.componentStyles);
168
168
 
169
169
  const COMPONENT_ID$3 = 'cursor_pagination.cursor';
170
170
  const StyledCursor = styled__default.default(StyledPageBase).attrs({
171
171
  'data-garden-id': COMPONENT_ID$3,
172
- 'data-garden-version': '9.4.0',
172
+ 'data-garden-version': '9.5.0',
173
173
  as: 'button'
174
174
  }).withConfig({
175
175
  displayName: "StyledCursor",
176
176
  componentId: "sc-507ee-0"
177
- })(["display:flex;align-items:center;border:none;background:transparent;padding:", ";overflow:visible;&:not(", "-of-type){margin-right:", "px;}", ";"], props => `0px ${props.theme.space.base * 2}px`, props => props.theme.rtl ? ':first' : ':last', props => props.theme.space.base, props => reactTheming.retrieveComponentStyles(COMPONENT_ID$3, props));
177
+ })(["display:flex;align-items:center;border:none;background:transparent;padding:", ";overflow:visible;&:not(", "-of-type){margin-right:", "px;}", ";"], props => `0px ${props.theme.space.base * 2}px`, props => props.theme.rtl ? ':first' : ':last', props => props.theme.space.base, reactTheming.componentStyles);
178
178
 
179
179
  const marginStyles = props => {
180
180
  const {
@@ -212,29 +212,29 @@ const colorStyles = _ref => {
212
212
  };
213
213
  const StyledGapListItem = styled__default.default(StyledListItem).attrs({
214
214
  'data-garden-id': COMPONENT_ID$2,
215
- 'data-garden-version': '9.4.0'
215
+ 'data-garden-version': '9.5.0'
216
216
  }).withConfig({
217
217
  displayName: "StyledGapListItem",
218
218
  componentId: "sc-10wd0iz-0"
219
- })(["display:inline-block;text-align:center;", ";", " &:hover{color:inherit;}", ";"], sizeStyles, colorStyles, props => reactTheming.retrieveComponentStyles(COMPONENT_ID$2, props));
219
+ })(["display:inline-block;text-align:center;", ";", " &:hover{color:inherit;}", ";"], sizeStyles, colorStyles, reactTheming.componentStyles);
220
220
 
221
221
  const COMPONENT_ID$1 = 'pagination.navigation';
222
222
  const StyledNavigation = styled__default.default(StyledPage).attrs({
223
223
  'data-garden-id': COMPONENT_ID$1,
224
- 'data-garden-version': '9.4.0'
224
+ 'data-garden-version': '9.5.0'
225
225
  }).withConfig({
226
226
  displayName: "StyledNavigation",
227
227
  componentId: "sc-1lpl8pp-0"
228
- })(["display:flex;align-items:center;justify-content:center;", ";"], props => reactTheming.retrieveComponentStyles(COMPONENT_ID$1, props));
228
+ })(["display:flex;align-items:center;justify-content:center;", ";"], reactTheming.componentStyles);
229
229
 
230
230
  const COMPONENT_ID = 'pagination.pagination_view';
231
231
  const StyledNav = styled__default.default.nav.attrs({
232
232
  'data-garden-id': COMPONENT_ID,
233
- 'data-garden-version': '9.4.0'
233
+ 'data-garden-version': '9.5.0'
234
234
  }).withConfig({
235
235
  displayName: "StyledNav",
236
236
  componentId: "sc-ppnpkw-0"
237
- })(["", ";"], props => reactTheming.retrieveComponentStyles(COMPONENT_ID, props));
237
+ })(["", ";"], reactTheming.componentStyles);
238
238
 
239
239
  var _path$3;
240
240
  function _extends$3() { return _extends$3 = Object.assign ? Object.assign.bind() : function (n) { for (var e = 1; e < arguments.length; e++) { var t = arguments[e]; for (var r in t) ({}).hasOwnProperty.call(t, r) && (n[r] = t[r]); } return n; }, _extends$3.apply(null, arguments); }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@zendeskgarden/react-pagination",
3
- "version": "9.4.0",
3
+ "version": "9.5.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>",
@@ -32,8 +32,8 @@
32
32
  "styled-components": "^5.3.1 || ^6.0.0"
33
33
  },
34
34
  "devDependencies": {
35
- "@zendeskgarden/react-theming": "^9.4.0",
36
- "@zendeskgarden/svg-icons": "7.3.0"
35
+ "@zendeskgarden/react-theming": "^9.5.0",
36
+ "@zendeskgarden/svg-icons": "7.5.0"
37
37
  },
38
38
  "keywords": [
39
39
  "components",
@@ -45,5 +45,5 @@
45
45
  "access": "public"
46
46
  },
47
47
  "zendeskgarden:src": "src/index.ts",
48
- "gitHead": "02e3f240b6f0c776fdae785254d6fe90cbfc37e4"
48
+ "gitHead": "43546784a9aa985332ddcc6dd09209a11e2c03ff"
49
49
  }