@zendeskgarden/react-pagination 9.0.0-next.15 → 9.0.0-next.17
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/esm/styled/CursorPagination/StyledCursor.js +1 -1
- package/dist/esm/styled/CursorPagination/StyledCursorPagination.js +1 -1
- package/dist/esm/styled/OffsetPagination/StyledGapListItem.js +12 -3
- package/dist/esm/styled/OffsetPagination/StyledList.js +13 -4
- package/dist/esm/styled/OffsetPagination/StyledListItem.js +1 -1
- package/dist/esm/styled/OffsetPagination/StyledNav.js +1 -1
- package/dist/esm/styled/OffsetPagination/StyledNavigation.js +1 -1
- package/dist/esm/styled/OffsetPagination/StyledPage.js +1 -1
- package/dist/esm/styled/OffsetPagination/StyledPageBase.js +61 -12
- package/dist/index.cjs.js +89 -22
- package/dist/typings/styled/OffsetPagination/StyledList.d.ts +2 -1
- package/package.json +3 -3
|
@@ -11,7 +11,7 @@ import { StyledPageBase } from '../OffsetPagination/StyledPageBase.js';
|
|
|
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.0.0-next.
|
|
14
|
+
'data-garden-version': '9.0.0-next.17',
|
|
15
15
|
as: 'button'
|
|
16
16
|
}).withConfig({
|
|
17
17
|
displayName: "StyledCursor",
|
|
@@ -10,7 +10,7 @@ import { retrieveComponentStyles, DEFAULT_THEME } from '@zendeskgarden/react-the
|
|
|
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.0.0-next.
|
|
13
|
+
'data-garden-version': '9.0.0-next.17'
|
|
14
14
|
}).withConfig({
|
|
15
15
|
displayName: "StyledCursorPagination",
|
|
16
16
|
componentId: "sc-qmfecg-0"
|
|
@@ -6,7 +6,7 @@
|
|
|
6
6
|
*/
|
|
7
7
|
import styled, { css } from 'styled-components';
|
|
8
8
|
import { math } from 'polished';
|
|
9
|
-
import {
|
|
9
|
+
import { retrieveComponentStyles, DEFAULT_THEME, getLineHeight, getColor } from '@zendeskgarden/react-theming';
|
|
10
10
|
import { StyledListItem } from './StyledListItem.js';
|
|
11
11
|
|
|
12
12
|
const COMPONENT_ID = 'pagination.gap';
|
|
@@ -18,13 +18,22 @@ const sizeStyles = props => {
|
|
|
18
18
|
const padding = `${props.theme.space.base * 1.5}px`;
|
|
19
19
|
return css(["padding:0 ", ";min-width:", ";max-width:", ";height:", ";line-height:", ";font-size:", ";"], padding, height, math(`${height} * 2`), height, lineHeight, fontSize);
|
|
20
20
|
};
|
|
21
|
+
const colorStyles = _ref => {
|
|
22
|
+
let {
|
|
23
|
+
theme
|
|
24
|
+
} = _ref;
|
|
25
|
+
return css(["color:", ";"], getColor({
|
|
26
|
+
variable: 'foreground.subtle',
|
|
27
|
+
theme
|
|
28
|
+
}));
|
|
29
|
+
};
|
|
21
30
|
const StyledGapListItem = styled(StyledListItem).attrs({
|
|
22
31
|
'data-garden-id': COMPONENT_ID,
|
|
23
|
-
'data-garden-version': '9.0.0-next.
|
|
32
|
+
'data-garden-version': '9.0.0-next.17'
|
|
24
33
|
}).withConfig({
|
|
25
34
|
displayName: "StyledGapListItem",
|
|
26
35
|
componentId: "sc-10wd0iz-0"
|
|
27
|
-
})(["display:inline-block;text-align:center;
|
|
36
|
+
})(["display:inline-block;text-align:center;", ";", " &:hover{color:inherit;}", ";"], sizeStyles, colorStyles, props => retrieveComponentStyles(COMPONENT_ID, props));
|
|
28
37
|
StyledGapListItem.defaultProps = {
|
|
29
38
|
theme: DEFAULT_THEME
|
|
30
39
|
};
|
|
@@ -4,17 +4,26 @@
|
|
|
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 styled from 'styled-components';
|
|
8
|
-
import {
|
|
7
|
+
import styled, { css } from 'styled-components';
|
|
8
|
+
import { retrieveComponentStyles, DEFAULT_THEME, getColor } from '@zendeskgarden/react-theming';
|
|
9
9
|
|
|
10
10
|
const COMPONENT_ID = 'pagination.list';
|
|
11
|
+
const colorStyles = _ref => {
|
|
12
|
+
let {
|
|
13
|
+
theme
|
|
14
|
+
} = _ref;
|
|
15
|
+
return css(["color:", ";"], getColor({
|
|
16
|
+
variable: 'foreground.subtle',
|
|
17
|
+
theme
|
|
18
|
+
}));
|
|
19
|
+
};
|
|
11
20
|
const StyledList = styled.ul.attrs({
|
|
12
21
|
'data-garden-id': COMPONENT_ID,
|
|
13
|
-
'data-garden-version': '9.0.0-next.
|
|
22
|
+
'data-garden-version': '9.0.0-next.17'
|
|
14
23
|
}).withConfig({
|
|
15
24
|
displayName: "StyledList",
|
|
16
25
|
componentId: "sc-1uz2jxo-0"
|
|
17
|
-
})(["direction:", ";display:flex;justify-content:center;margin:0;padding:0;list-style:none;white-space:nowrap;
|
|
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));
|
|
18
27
|
StyledList.defaultProps = {
|
|
19
28
|
theme: DEFAULT_THEME
|
|
20
29
|
};
|
|
@@ -10,7 +10,7 @@ import { retrieveComponentStyles, DEFAULT_THEME } from '@zendeskgarden/react-the
|
|
|
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.0.0-next.
|
|
13
|
+
'data-garden-version': '9.0.0-next.17'
|
|
14
14
|
}).withConfig({
|
|
15
15
|
displayName: "StyledListItem",
|
|
16
16
|
componentId: "sc-16j4sju-0"
|
|
@@ -10,7 +10,7 @@ import { retrieveComponentStyles, DEFAULT_THEME } from '@zendeskgarden/react-the
|
|
|
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.0.0-next.
|
|
13
|
+
'data-garden-version': '9.0.0-next.17'
|
|
14
14
|
}).withConfig({
|
|
15
15
|
displayName: "StyledNav",
|
|
16
16
|
componentId: "sc-ppnpkw-0"
|
|
@@ -11,7 +11,7 @@ import { StyledPage } from './StyledPage.js';
|
|
|
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.0.0-next.
|
|
14
|
+
'data-garden-version': '9.0.0-next.17'
|
|
15
15
|
}).withConfig({
|
|
16
16
|
displayName: "StyledNavigation",
|
|
17
17
|
componentId: "sc-1lpl8pp-0"
|
|
@@ -15,7 +15,7 @@ const sizeStyles = props => {
|
|
|
15
15
|
};
|
|
16
16
|
const StyledPage = styled(StyledPageBase).attrs({
|
|
17
17
|
'data-garden-id': COMPONENT_ID,
|
|
18
|
-
'data-garden-version': '9.0.0-next.
|
|
18
|
+
'data-garden-version': '9.0.0-next.17'
|
|
19
19
|
}).withConfig({
|
|
20
20
|
displayName: "StyledPage",
|
|
21
21
|
componentId: "sc-sxjfwy-0"
|
|
@@ -5,23 +5,72 @@
|
|
|
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, DEFAULT_THEME,
|
|
8
|
+
import { retrieveComponentStyles, DEFAULT_THEME, getColor, focusStyles, getLineHeight } from '@zendeskgarden/react-theming';
|
|
9
9
|
|
|
10
10
|
const COMPONENT_ID = 'pagination.page';
|
|
11
|
-
const colorStyles =
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
const
|
|
16
|
-
|
|
11
|
+
const colorStyles = _ref => {
|
|
12
|
+
let {
|
|
13
|
+
theme
|
|
14
|
+
} = _ref;
|
|
15
|
+
const disabledColor = getColor({
|
|
16
|
+
variable: 'foreground.disabled',
|
|
17
|
+
theme
|
|
18
|
+
});
|
|
19
|
+
const defaultColor = getColor({
|
|
20
|
+
variable: 'foreground.subtle',
|
|
21
|
+
theme
|
|
22
|
+
});
|
|
23
|
+
const hoverForegroundColor = getColor({
|
|
24
|
+
variable: 'foreground.subtle',
|
|
25
|
+
light: {
|
|
26
|
+
offset: 100
|
|
27
|
+
},
|
|
28
|
+
dark: {
|
|
29
|
+
offset: -100
|
|
30
|
+
},
|
|
31
|
+
theme
|
|
32
|
+
});
|
|
33
|
+
const hoverBackgroundColor = getColor({
|
|
34
|
+
variable: 'background.primaryEmphasis',
|
|
35
|
+
transparency: theme.opacity[100],
|
|
36
|
+
dark: {
|
|
37
|
+
offset: -100
|
|
38
|
+
},
|
|
39
|
+
theme
|
|
40
|
+
});
|
|
41
|
+
const activeForegroundColor = getColor({
|
|
42
|
+
variable: 'foreground.subtle',
|
|
43
|
+
light: {
|
|
44
|
+
offset: 200
|
|
45
|
+
},
|
|
46
|
+
dark: {
|
|
47
|
+
offset: -200
|
|
48
|
+
},
|
|
49
|
+
theme
|
|
50
|
+
});
|
|
51
|
+
const activeBackgroundColor = getColor({
|
|
52
|
+
variable: 'background.primaryEmphasis',
|
|
53
|
+
transparency: theme.opacity[200],
|
|
54
|
+
dark: {
|
|
55
|
+
offset: -100
|
|
56
|
+
},
|
|
57
|
+
theme
|
|
58
|
+
});
|
|
17
59
|
const currentForegroundColor = activeForegroundColor;
|
|
18
60
|
const currentBackgroundColor = hoverBackgroundColor;
|
|
19
|
-
const currentHoverBackgroundColor =
|
|
20
|
-
const currentActiveBackgroundColor =
|
|
61
|
+
const currentHoverBackgroundColor = activeBackgroundColor;
|
|
62
|
+
const currentActiveBackgroundColor = getColor({
|
|
63
|
+
variable: 'background.primaryEmphasis',
|
|
64
|
+
transparency: theme.opacity[300],
|
|
65
|
+
dark: {
|
|
66
|
+
offset: -100
|
|
67
|
+
},
|
|
68
|
+
theme
|
|
69
|
+
});
|
|
21
70
|
return css(["border:none;background:transparent;color:", ";&:hover{background-color:", ";color:", ";}", " &:active,&:focus-visible:active{background-color:", ";color:", ";}&[aria-current='page']{background-color:", ";color:", ";}&[aria-current='page']:hover{background-color:", ";}&[aria-current='page']:active{background-color:", ";}:disabled,[aria-disabled='true']{background-color:transparent;color:", ";}"], defaultColor, hoverBackgroundColor, hoverForegroundColor, focusStyles({
|
|
22
|
-
theme
|
|
71
|
+
theme,
|
|
23
72
|
inset: true
|
|
24
|
-
}), activeBackgroundColor, activeForegroundColor, currentBackgroundColor, currentForegroundColor, currentHoverBackgroundColor, currentActiveBackgroundColor,
|
|
73
|
+
}), activeBackgroundColor, activeForegroundColor, currentBackgroundColor, currentForegroundColor, currentHoverBackgroundColor, currentActiveBackgroundColor, disabledColor);
|
|
25
74
|
};
|
|
26
75
|
const sizeStyles = props => {
|
|
27
76
|
const fontSize = props.theme.fontSizes.md;
|
|
@@ -32,7 +81,7 @@ const sizeStyles = props => {
|
|
|
32
81
|
};
|
|
33
82
|
const StyledPageBase = styled.button.attrs({
|
|
34
83
|
'data-garden-id': COMPONENT_ID,
|
|
35
|
-
'data-garden-version': '9.0.0-next.
|
|
84
|
+
'data-garden-version': '9.0.0-next.17'
|
|
36
85
|
}).withConfig({
|
|
37
86
|
displayName: "StyledPageBase",
|
|
38
87
|
componentId: "sc-ttwj4u-0"
|
package/dist/index.cjs.js
CHANGED
|
@@ -38,13 +38,22 @@ var PropTypes__default = /*#__PURE__*/_interopDefault(PropTypes);
|
|
|
38
38
|
var styled__default = /*#__PURE__*/_interopDefault(styled);
|
|
39
39
|
|
|
40
40
|
const COMPONENT_ID$8 = 'pagination.list';
|
|
41
|
+
const colorStyles$2 = _ref => {
|
|
42
|
+
let {
|
|
43
|
+
theme
|
|
44
|
+
} = _ref;
|
|
45
|
+
return styled.css(["color:", ";"], reactTheming.getColor({
|
|
46
|
+
variable: 'foreground.subtle',
|
|
47
|
+
theme
|
|
48
|
+
}));
|
|
49
|
+
};
|
|
41
50
|
const StyledList = styled__default.default.ul.attrs({
|
|
42
51
|
'data-garden-id': COMPONENT_ID$8,
|
|
43
|
-
'data-garden-version': '9.0.0-next.
|
|
52
|
+
'data-garden-version': '9.0.0-next.17'
|
|
44
53
|
}).withConfig({
|
|
45
54
|
displayName: "StyledList",
|
|
46
55
|
componentId: "sc-1uz2jxo-0"
|
|
47
|
-
})(["direction:", ";display:flex;justify-content:center;margin:0;padding:0;list-style:none;white-space:nowrap;
|
|
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));
|
|
48
57
|
StyledList.defaultProps = {
|
|
49
58
|
theme: reactTheming.DEFAULT_THEME
|
|
50
59
|
};
|
|
@@ -52,7 +61,7 @@ StyledList.defaultProps = {
|
|
|
52
61
|
const COMPONENT_ID$7 = 'pagination.list_item';
|
|
53
62
|
const StyledListItem = styled__default.default.li.attrs({
|
|
54
63
|
'data-garden-id': COMPONENT_ID$7,
|
|
55
|
-
'data-garden-version': '9.0.0-next.
|
|
64
|
+
'data-garden-version': '9.0.0-next.17'
|
|
56
65
|
}).withConfig({
|
|
57
66
|
displayName: "StyledListItem",
|
|
58
67
|
componentId: "sc-16j4sju-0"
|
|
@@ -62,20 +71,69 @@ StyledListItem.defaultProps = {
|
|
|
62
71
|
};
|
|
63
72
|
|
|
64
73
|
const COMPONENT_ID$6 = 'pagination.page';
|
|
65
|
-
const colorStyles =
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
const
|
|
70
|
-
|
|
74
|
+
const colorStyles$1 = _ref => {
|
|
75
|
+
let {
|
|
76
|
+
theme
|
|
77
|
+
} = _ref;
|
|
78
|
+
const disabledColor = reactTheming.getColor({
|
|
79
|
+
variable: 'foreground.disabled',
|
|
80
|
+
theme
|
|
81
|
+
});
|
|
82
|
+
const defaultColor = reactTheming.getColor({
|
|
83
|
+
variable: 'foreground.subtle',
|
|
84
|
+
theme
|
|
85
|
+
});
|
|
86
|
+
const hoverForegroundColor = reactTheming.getColor({
|
|
87
|
+
variable: 'foreground.subtle',
|
|
88
|
+
light: {
|
|
89
|
+
offset: 100
|
|
90
|
+
},
|
|
91
|
+
dark: {
|
|
92
|
+
offset: -100
|
|
93
|
+
},
|
|
94
|
+
theme
|
|
95
|
+
});
|
|
96
|
+
const hoverBackgroundColor = reactTheming.getColor({
|
|
97
|
+
variable: 'background.primaryEmphasis',
|
|
98
|
+
transparency: theme.opacity[100],
|
|
99
|
+
dark: {
|
|
100
|
+
offset: -100
|
|
101
|
+
},
|
|
102
|
+
theme
|
|
103
|
+
});
|
|
104
|
+
const activeForegroundColor = reactTheming.getColor({
|
|
105
|
+
variable: 'foreground.subtle',
|
|
106
|
+
light: {
|
|
107
|
+
offset: 200
|
|
108
|
+
},
|
|
109
|
+
dark: {
|
|
110
|
+
offset: -200
|
|
111
|
+
},
|
|
112
|
+
theme
|
|
113
|
+
});
|
|
114
|
+
const activeBackgroundColor = reactTheming.getColor({
|
|
115
|
+
variable: 'background.primaryEmphasis',
|
|
116
|
+
transparency: theme.opacity[200],
|
|
117
|
+
dark: {
|
|
118
|
+
offset: -100
|
|
119
|
+
},
|
|
120
|
+
theme
|
|
121
|
+
});
|
|
71
122
|
const currentForegroundColor = activeForegroundColor;
|
|
72
123
|
const currentBackgroundColor = hoverBackgroundColor;
|
|
73
|
-
const currentHoverBackgroundColor =
|
|
74
|
-
const currentActiveBackgroundColor = reactTheming.
|
|
124
|
+
const currentHoverBackgroundColor = activeBackgroundColor;
|
|
125
|
+
const currentActiveBackgroundColor = reactTheming.getColor({
|
|
126
|
+
variable: 'background.primaryEmphasis',
|
|
127
|
+
transparency: theme.opacity[300],
|
|
128
|
+
dark: {
|
|
129
|
+
offset: -100
|
|
130
|
+
},
|
|
131
|
+
theme
|
|
132
|
+
});
|
|
75
133
|
return styled.css(["border:none;background:transparent;color:", ";&:hover{background-color:", ";color:", ";}", " &:active,&:focus-visible:active{background-color:", ";color:", ";}&[aria-current='page']{background-color:", ";color:", ";}&[aria-current='page']:hover{background-color:", ";}&[aria-current='page']:active{background-color:", ";}:disabled,[aria-disabled='true']{background-color:transparent;color:", ";}"], defaultColor, hoverBackgroundColor, hoverForegroundColor, reactTheming.focusStyles({
|
|
76
|
-
theme
|
|
134
|
+
theme,
|
|
77
135
|
inset: true
|
|
78
|
-
}), activeBackgroundColor, activeForegroundColor, currentBackgroundColor, currentForegroundColor, currentHoverBackgroundColor, currentActiveBackgroundColor,
|
|
136
|
+
}), activeBackgroundColor, activeForegroundColor, currentBackgroundColor, currentForegroundColor, currentHoverBackgroundColor, currentActiveBackgroundColor, disabledColor);
|
|
79
137
|
};
|
|
80
138
|
const sizeStyles$2 = props => {
|
|
81
139
|
const fontSize = props.theme.fontSizes.md;
|
|
@@ -86,11 +144,11 @@ const sizeStyles$2 = props => {
|
|
|
86
144
|
};
|
|
87
145
|
const StyledPageBase = styled__default.default.button.attrs({
|
|
88
146
|
'data-garden-id': COMPONENT_ID$6,
|
|
89
|
-
'data-garden-version': '9.0.0-next.
|
|
147
|
+
'data-garden-version': '9.0.0-next.17'
|
|
90
148
|
}).withConfig({
|
|
91
149
|
displayName: "StyledPageBase",
|
|
92
150
|
componentId: "sc-ttwj4u-0"
|
|
93
|
-
})(["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(props), props => reactTheming.retrieveComponentStyles(COMPONENT_ID$6, props));
|
|
151
|
+
})(["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));
|
|
94
152
|
StyledPageBase.defaultProps = {
|
|
95
153
|
theme: reactTheming.DEFAULT_THEME
|
|
96
154
|
};
|
|
@@ -102,7 +160,7 @@ const sizeStyles$1 = props => {
|
|
|
102
160
|
};
|
|
103
161
|
const StyledPage = styled__default.default(StyledPageBase).attrs({
|
|
104
162
|
'data-garden-id': COMPONENT_ID$5,
|
|
105
|
-
'data-garden-version': '9.0.0-next.
|
|
163
|
+
'data-garden-version': '9.0.0-next.17'
|
|
106
164
|
}).withConfig({
|
|
107
165
|
displayName: "StyledPage",
|
|
108
166
|
componentId: "sc-sxjfwy-0"
|
|
@@ -114,7 +172,7 @@ StyledPage.defaultProps = {
|
|
|
114
172
|
const COMPONENT_ID$4 = 'cursor_pagination';
|
|
115
173
|
const StyledCursorPagination = styled__default.default.nav.attrs({
|
|
116
174
|
'data-garden-id': COMPONENT_ID$4,
|
|
117
|
-
'data-garden-version': '9.0.0-next.
|
|
175
|
+
'data-garden-version': '9.0.0-next.17'
|
|
118
176
|
}).withConfig({
|
|
119
177
|
displayName: "StyledCursorPagination",
|
|
120
178
|
componentId: "sc-qmfecg-0"
|
|
@@ -126,7 +184,7 @@ StyledCursorPagination.defaultProps = {
|
|
|
126
184
|
const COMPONENT_ID$3 = 'cursor_pagination.cursor';
|
|
127
185
|
const StyledCursor = styled__default.default(StyledPageBase).attrs({
|
|
128
186
|
'data-garden-id': COMPONENT_ID$3,
|
|
129
|
-
'data-garden-version': '9.0.0-next.
|
|
187
|
+
'data-garden-version': '9.0.0-next.17',
|
|
130
188
|
as: 'button'
|
|
131
189
|
}).withConfig({
|
|
132
190
|
displayName: "StyledCursor",
|
|
@@ -164,13 +222,22 @@ const sizeStyles = props => {
|
|
|
164
222
|
const padding = `${props.theme.space.base * 1.5}px`;
|
|
165
223
|
return styled.css(["padding:0 ", ";min-width:", ";max-width:", ";height:", ";line-height:", ";font-size:", ";"], padding, height, polished.math(`${height} * 2`), height, lineHeight, fontSize);
|
|
166
224
|
};
|
|
225
|
+
const colorStyles = _ref => {
|
|
226
|
+
let {
|
|
227
|
+
theme
|
|
228
|
+
} = _ref;
|
|
229
|
+
return styled.css(["color:", ";"], reactTheming.getColor({
|
|
230
|
+
variable: 'foreground.subtle',
|
|
231
|
+
theme
|
|
232
|
+
}));
|
|
233
|
+
};
|
|
167
234
|
const StyledGapListItem = styled__default.default(StyledListItem).attrs({
|
|
168
235
|
'data-garden-id': COMPONENT_ID$2,
|
|
169
|
-
'data-garden-version': '9.0.0-next.
|
|
236
|
+
'data-garden-version': '9.0.0-next.17'
|
|
170
237
|
}).withConfig({
|
|
171
238
|
displayName: "StyledGapListItem",
|
|
172
239
|
componentId: "sc-10wd0iz-0"
|
|
173
|
-
})(["display:inline-block;text-align:center;
|
|
240
|
+
})(["display:inline-block;text-align:center;", ";", " &:hover{color:inherit;}", ";"], sizeStyles, colorStyles, props => reactTheming.retrieveComponentStyles(COMPONENT_ID$2, props));
|
|
174
241
|
StyledGapListItem.defaultProps = {
|
|
175
242
|
theme: reactTheming.DEFAULT_THEME
|
|
176
243
|
};
|
|
@@ -178,7 +245,7 @@ StyledGapListItem.defaultProps = {
|
|
|
178
245
|
const COMPONENT_ID$1 = 'pagination.navigation';
|
|
179
246
|
const StyledNavigation = styled__default.default(StyledPage).attrs({
|
|
180
247
|
'data-garden-id': COMPONENT_ID$1,
|
|
181
|
-
'data-garden-version': '9.0.0-next.
|
|
248
|
+
'data-garden-version': '9.0.0-next.17'
|
|
182
249
|
}).withConfig({
|
|
183
250
|
displayName: "StyledNavigation",
|
|
184
251
|
componentId: "sc-1lpl8pp-0"
|
|
@@ -190,7 +257,7 @@ StyledNavigation.defaultProps = {
|
|
|
190
257
|
const COMPONENT_ID = 'pagination.pagination_view';
|
|
191
258
|
const StyledNav = styled__default.default.nav.attrs({
|
|
192
259
|
'data-garden-id': COMPONENT_ID,
|
|
193
|
-
'data-garden-version': '9.0.0-next.
|
|
260
|
+
'data-garden-version': '9.0.0-next.17'
|
|
194
261
|
}).withConfig({
|
|
195
262
|
displayName: "StyledNav",
|
|
196
263
|
componentId: "sc-ppnpkw-0"
|
|
@@ -4,11 +4,12 @@
|
|
|
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 { DefaultTheme } from 'styled-components';
|
|
7
8
|
/**
|
|
8
9
|
* 1. List reset.
|
|
9
10
|
* 2. Text truncation.
|
|
10
11
|
*/
|
|
11
|
-
export declare const StyledList: import("styled-components").StyledComponent<"ul",
|
|
12
|
+
export declare const StyledList: import("styled-components").StyledComponent<"ul", DefaultTheme, {
|
|
12
13
|
'data-garden-id': string;
|
|
13
14
|
'data-garden-version': string;
|
|
14
15
|
}, "data-garden-id" | "data-garden-version">;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@zendeskgarden/react-pagination",
|
|
3
|
-
"version": "9.0.0-next.
|
|
3
|
+
"version": "9.0.0-next.17",
|
|
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,7 +32,7 @@
|
|
|
32
32
|
"styled-components": "^5.3.1"
|
|
33
33
|
},
|
|
34
34
|
"devDependencies": {
|
|
35
|
-
"@zendeskgarden/react-theming": "^9.0.0-next.
|
|
35
|
+
"@zendeskgarden/react-theming": "^9.0.0-next.17",
|
|
36
36
|
"@zendeskgarden/svg-icons": "7.1.1"
|
|
37
37
|
},
|
|
38
38
|
"keywords": [
|
|
@@ -45,5 +45,5 @@
|
|
|
45
45
|
"access": "public"
|
|
46
46
|
},
|
|
47
47
|
"zendeskgarden:src": "src/index.ts",
|
|
48
|
-
"gitHead": "
|
|
48
|
+
"gitHead": "7a7e39c2a9e854ad0fe914d82e28c052aa102d2e"
|
|
49
49
|
}
|