@zendeskgarden/react-pagination 9.0.0-next.9 → 9.1.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/esm/elements/CursorPagination/CursorPagination.js +1 -1
- package/dist/esm/node_modules/@zendeskgarden/svg-icons/src/16/chevron-double-left-stroke.svg.js +1 -1
- package/dist/esm/node_modules/@zendeskgarden/svg-icons/src/16/chevron-double-right-stroke.svg.js +1 -1
- package/dist/esm/node_modules/@zendeskgarden/svg-icons/src/16/chevron-left-stroke.svg.js +1 -1
- package/dist/esm/node_modules/@zendeskgarden/svg-icons/src/16/chevron-right-stroke.svg.js +1 -1
- package/dist/esm/styled/CursorPagination/StyledCursor.js +2 -5
- package/dist/esm/styled/CursorPagination/StyledCursorPagination.js +2 -5
- package/dist/esm/styled/CursorPagination/StyledIcon.js +1 -4
- package/dist/esm/styled/OffsetPagination/StyledGapListItem.js +12 -6
- package/dist/esm/styled/OffsetPagination/StyledList.js +13 -7
- package/dist/esm/styled/OffsetPagination/StyledListItem.js +2 -5
- package/dist/esm/styled/OffsetPagination/StyledNav.js +2 -5
- package/dist/esm/styled/OffsetPagination/StyledNavigation.js +2 -5
- package/dist/esm/styled/OffsetPagination/StyledPage.js +2 -5
- package/dist/esm/styled/OffsetPagination/StyledPageBase.js +61 -15
- package/dist/index.cjs.js +93 -56
- package/dist/typings/elements/CursorPagination/CursorPagination.d.ts +3 -2
- package/dist/typings/styled/CursorPagination/StyledIcon.d.ts +1 -2
- package/dist/typings/styled/OffsetPagination/StyledList.d.ts +2 -1
- package/package.json +7 -7
package/dist/esm/node_modules/@zendeskgarden/svg-icons/src/16/chevron-double-left-stroke.svg.js
CHANGED
|
@@ -7,7 +7,7 @@
|
|
|
7
7
|
import * as React from 'react';
|
|
8
8
|
|
|
9
9
|
var _path;
|
|
10
|
-
function _extends() { _extends = Object.assign ? Object.assign.bind() : function (
|
|
10
|
+
function _extends() { return _extends = 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.apply(null, arguments); }
|
|
11
11
|
var SvgChevronDoubleLeftStroke = function SvgChevronDoubleLeftStroke(props) {
|
|
12
12
|
return /*#__PURE__*/React.createElement("svg", _extends({
|
|
13
13
|
xmlns: "http://www.w3.org/2000/svg",
|
package/dist/esm/node_modules/@zendeskgarden/svg-icons/src/16/chevron-double-right-stroke.svg.js
CHANGED
|
@@ -7,7 +7,7 @@
|
|
|
7
7
|
import * as React from 'react';
|
|
8
8
|
|
|
9
9
|
var _path;
|
|
10
|
-
function _extends() { _extends = Object.assign ? Object.assign.bind() : function (
|
|
10
|
+
function _extends() { return _extends = 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.apply(null, arguments); }
|
|
11
11
|
var SvgChevronDoubleRightStroke = function SvgChevronDoubleRightStroke(props) {
|
|
12
12
|
return /*#__PURE__*/React.createElement("svg", _extends({
|
|
13
13
|
xmlns: "http://www.w3.org/2000/svg",
|
|
@@ -7,7 +7,7 @@
|
|
|
7
7
|
import * as React from 'react';
|
|
8
8
|
|
|
9
9
|
var _path;
|
|
10
|
-
function _extends() { _extends = Object.assign ? Object.assign.bind() : function (
|
|
10
|
+
function _extends() { return _extends = 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.apply(null, arguments); }
|
|
11
11
|
var SvgChevronLeftStroke = function SvgChevronLeftStroke(props) {
|
|
12
12
|
return /*#__PURE__*/React.createElement("svg", _extends({
|
|
13
13
|
xmlns: "http://www.w3.org/2000/svg",
|
|
@@ -7,7 +7,7 @@
|
|
|
7
7
|
import * as React from 'react';
|
|
8
8
|
|
|
9
9
|
var _path;
|
|
10
|
-
function _extends() { _extends = Object.assign ? Object.assign.bind() : function (
|
|
10
|
+
function _extends() { return _extends = 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.apply(null, arguments); }
|
|
11
11
|
var SvgChevronRightStroke = function SvgChevronRightStroke(props) {
|
|
12
12
|
return /*#__PURE__*/React.createElement("svg", _extends({
|
|
13
13
|
xmlns: "http://www.w3.org/2000/svg",
|
|
@@ -5,20 +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
|
|
8
|
+
import { retrieveComponentStyles } 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.
|
|
14
|
+
'data-garden-version': '9.1.0',
|
|
15
15
|
as: 'button'
|
|
16
16
|
}).withConfig({
|
|
17
17
|
displayName: "StyledCursor",
|
|
18
18
|
componentId: "sc-507ee-0"
|
|
19
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));
|
|
20
|
-
StyledCursor.defaultProps = {
|
|
21
|
-
theme: DEFAULT_THEME
|
|
22
|
-
};
|
|
23
20
|
|
|
24
21
|
export { StyledCursor };
|
|
@@ -5,18 +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
|
|
8
|
+
import { retrieveComponentStyles } 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.
|
|
13
|
+
'data-garden-version': '9.1.0'
|
|
14
14
|
}).withConfig({
|
|
15
15
|
displayName: "StyledCursorPagination",
|
|
16
16
|
componentId: "sc-qmfecg-0"
|
|
17
17
|
})(["display:flex;justify-content:center;", ";"], props => retrieveComponentStyles(COMPONENT_ID, props));
|
|
18
|
-
StyledCursorPagination.defaultProps = {
|
|
19
|
-
theme: DEFAULT_THEME
|
|
20
|
-
};
|
|
21
18
|
|
|
22
19
|
export { StyledCursorPagination };
|
|
@@ -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 { StyledBaseIcon
|
|
8
|
+
import { StyledBaseIcon } from '@zendeskgarden/react-theming';
|
|
9
9
|
|
|
10
10
|
const marginStyles = props => {
|
|
11
11
|
const {
|
|
@@ -22,8 +22,5 @@ const StyledIcon = styled(StyledBaseIcon).withConfig({
|
|
|
22
22
|
displayName: "StyledIcon",
|
|
23
23
|
componentId: "sc-2vzk6e-0"
|
|
24
24
|
})(["", " transform:", ";"], marginStyles, props => props.theme.rtl && 'rotate(180deg)');
|
|
25
|
-
StyledIcon.defaultProps = {
|
|
26
|
-
theme: DEFAULT_THEME
|
|
27
|
-
};
|
|
28
25
|
|
|
29
26
|
export { StyledIcon };
|
|
@@ -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, getLineHeight, getColor } from '@zendeskgarden/react-theming';
|
|
10
10
|
import { StyledListItem } from './StyledListItem.js';
|
|
11
11
|
|
|
12
12
|
const COMPONENT_ID = 'pagination.gap';
|
|
@@ -18,15 +18,21 @@ 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.
|
|
32
|
+
'data-garden-version': '9.1.0'
|
|
24
33
|
}).withConfig({
|
|
25
34
|
displayName: "StyledGapListItem",
|
|
26
35
|
componentId: "sc-10wd0iz-0"
|
|
27
|
-
})(["display:inline-block;text-align:center;
|
|
28
|
-
StyledGapListItem.defaultProps = {
|
|
29
|
-
theme: DEFAULT_THEME
|
|
30
|
-
};
|
|
36
|
+
})(["display:inline-block;text-align:center;", ";", " &:hover{color:inherit;}", ";"], sizeStyles, colorStyles, props => retrieveComponentStyles(COMPONENT_ID, props));
|
|
31
37
|
|
|
32
38
|
export { StyledGapListItem };
|
|
@@ -4,19 +4,25 @@
|
|
|
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, 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.
|
|
22
|
+
'data-garden-version': '9.1.0'
|
|
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;
|
|
18
|
-
StyledList.defaultProps = {
|
|
19
|
-
theme: DEFAULT_THEME
|
|
20
|
-
};
|
|
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));
|
|
21
27
|
|
|
22
28
|
export { StyledList };
|
|
@@ -5,18 +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
|
|
8
|
+
import { retrieveComponentStyles } 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.
|
|
13
|
+
'data-garden-version': '9.1.0'
|
|
14
14
|
}).withConfig({
|
|
15
15
|
displayName: "StyledListItem",
|
|
16
16
|
componentId: "sc-16j4sju-0"
|
|
17
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));
|
|
18
|
-
StyledListItem.defaultProps = {
|
|
19
|
-
theme: DEFAULT_THEME
|
|
20
|
-
};
|
|
21
18
|
|
|
22
19
|
export { StyledListItem };
|
|
@@ -5,18 +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
|
|
8
|
+
import { retrieveComponentStyles } 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.
|
|
13
|
+
'data-garden-version': '9.1.0'
|
|
14
14
|
}).withConfig({
|
|
15
15
|
displayName: "StyledNav",
|
|
16
16
|
componentId: "sc-ppnpkw-0"
|
|
17
17
|
})(["", ";"], props => retrieveComponentStyles(COMPONENT_ID, props));
|
|
18
|
-
StyledNav.defaultProps = {
|
|
19
|
-
theme: DEFAULT_THEME
|
|
20
|
-
};
|
|
21
18
|
|
|
22
19
|
export { StyledNav };
|
|
@@ -5,19 +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
|
|
8
|
+
import { retrieveComponentStyles } 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.
|
|
14
|
+
'data-garden-version': '9.1.0'
|
|
15
15
|
}).withConfig({
|
|
16
16
|
displayName: "StyledNavigation",
|
|
17
17
|
componentId: "sc-1lpl8pp-0"
|
|
18
18
|
})(["display:flex;align-items:center;justify-content:center;", ";"], props => retrieveComponentStyles(COMPONENT_ID, props));
|
|
19
|
-
StyledNavigation.defaultProps = {
|
|
20
|
-
theme: DEFAULT_THEME
|
|
21
|
-
};
|
|
22
19
|
|
|
23
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
|
|
8
|
+
import { retrieveComponentStyles } from '@zendeskgarden/react-theming';
|
|
9
9
|
import { StyledPageBase } from './StyledPageBase.js';
|
|
10
10
|
|
|
11
11
|
const COMPONENT_ID = 'pagination.page';
|
|
@@ -15,13 +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.
|
|
18
|
+
'data-garden-version': '9.1.0'
|
|
19
19
|
}).withConfig({
|
|
20
20
|
displayName: "StyledPage",
|
|
21
21
|
componentId: "sc-sxjfwy-0"
|
|
22
22
|
})(["", ";&[aria-current=\"true\"]{font-weight:", ";}", ";"], props => sizeStyles(props), props => props.theme.fontWeights.semibold, props => retrieveComponentStyles(COMPONENT_ID, props));
|
|
23
|
-
StyledPage.defaultProps = {
|
|
24
|
-
theme: DEFAULT_THEME
|
|
25
|
-
};
|
|
26
23
|
|
|
27
24
|
export { StyledPage };
|
|
@@ -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,
|
|
8
|
+
import { retrieveComponentStyles, 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,13 +81,10 @@ const sizeStyles = props => {
|
|
|
32
81
|
};
|
|
33
82
|
const StyledPageBase = styled.button.attrs({
|
|
34
83
|
'data-garden-id': COMPONENT_ID,
|
|
35
|
-
'data-garden-version': '9.
|
|
84
|
+
'data-garden-version': '9.1.0'
|
|
36
85
|
}).withConfig({
|
|
37
86
|
displayName: "StyledPageBase",
|
|
38
87
|
componentId: "sc-ttwj4u-0"
|
|
39
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));
|
|
40
|
-
StyledPageBase.defaultProps = {
|
|
41
|
-
theme: DEFAULT_THEME
|
|
42
|
-
};
|
|
43
89
|
|
|
44
90
|
export { StyledPageBase };
|
package/dist/index.cjs.js
CHANGED
|
@@ -38,44 +38,96 @@ 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.
|
|
52
|
+
'data-garden-version': '9.1.0'
|
|
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;
|
|
48
|
-
StyledList.defaultProps = {
|
|
49
|
-
theme: reactTheming.DEFAULT_THEME
|
|
50
|
-
};
|
|
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));
|
|
51
57
|
|
|
52
58
|
const COMPONENT_ID$7 = 'pagination.list_item';
|
|
53
59
|
const StyledListItem = styled__default.default.li.attrs({
|
|
54
60
|
'data-garden-id': COMPONENT_ID$7,
|
|
55
|
-
'data-garden-version': '9.
|
|
61
|
+
'data-garden-version': '9.1.0'
|
|
56
62
|
}).withConfig({
|
|
57
63
|
displayName: "StyledListItem",
|
|
58
64
|
componentId: "sc-16j4sju-0"
|
|
59
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));
|
|
60
|
-
StyledListItem.defaultProps = {
|
|
61
|
-
theme: reactTheming.DEFAULT_THEME
|
|
62
|
-
};
|
|
63
66
|
|
|
64
67
|
const COMPONENT_ID$6 = 'pagination.page';
|
|
65
|
-
const colorStyles =
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
const
|
|
70
|
-
|
|
68
|
+
const colorStyles$1 = _ref => {
|
|
69
|
+
let {
|
|
70
|
+
theme
|
|
71
|
+
} = _ref;
|
|
72
|
+
const disabledColor = reactTheming.getColor({
|
|
73
|
+
variable: 'foreground.disabled',
|
|
74
|
+
theme
|
|
75
|
+
});
|
|
76
|
+
const defaultColor = reactTheming.getColor({
|
|
77
|
+
variable: 'foreground.subtle',
|
|
78
|
+
theme
|
|
79
|
+
});
|
|
80
|
+
const hoverForegroundColor = reactTheming.getColor({
|
|
81
|
+
variable: 'foreground.subtle',
|
|
82
|
+
light: {
|
|
83
|
+
offset: 100
|
|
84
|
+
},
|
|
85
|
+
dark: {
|
|
86
|
+
offset: -100
|
|
87
|
+
},
|
|
88
|
+
theme
|
|
89
|
+
});
|
|
90
|
+
const hoverBackgroundColor = reactTheming.getColor({
|
|
91
|
+
variable: 'background.primaryEmphasis',
|
|
92
|
+
transparency: theme.opacity[100],
|
|
93
|
+
dark: {
|
|
94
|
+
offset: -100
|
|
95
|
+
},
|
|
96
|
+
theme
|
|
97
|
+
});
|
|
98
|
+
const activeForegroundColor = reactTheming.getColor({
|
|
99
|
+
variable: 'foreground.subtle',
|
|
100
|
+
light: {
|
|
101
|
+
offset: 200
|
|
102
|
+
},
|
|
103
|
+
dark: {
|
|
104
|
+
offset: -200
|
|
105
|
+
},
|
|
106
|
+
theme
|
|
107
|
+
});
|
|
108
|
+
const activeBackgroundColor = reactTheming.getColor({
|
|
109
|
+
variable: 'background.primaryEmphasis',
|
|
110
|
+
transparency: theme.opacity[200],
|
|
111
|
+
dark: {
|
|
112
|
+
offset: -100
|
|
113
|
+
},
|
|
114
|
+
theme
|
|
115
|
+
});
|
|
71
116
|
const currentForegroundColor = activeForegroundColor;
|
|
72
117
|
const currentBackgroundColor = hoverBackgroundColor;
|
|
73
|
-
const currentHoverBackgroundColor =
|
|
74
|
-
const currentActiveBackgroundColor = reactTheming.
|
|
118
|
+
const currentHoverBackgroundColor = activeBackgroundColor;
|
|
119
|
+
const currentActiveBackgroundColor = reactTheming.getColor({
|
|
120
|
+
variable: 'background.primaryEmphasis',
|
|
121
|
+
transparency: theme.opacity[300],
|
|
122
|
+
dark: {
|
|
123
|
+
offset: -100
|
|
124
|
+
},
|
|
125
|
+
theme
|
|
126
|
+
});
|
|
75
127
|
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
|
|
128
|
+
theme,
|
|
77
129
|
inset: true
|
|
78
|
-
}), activeBackgroundColor, activeForegroundColor, currentBackgroundColor, currentForegroundColor, currentHoverBackgroundColor, currentActiveBackgroundColor,
|
|
130
|
+
}), activeBackgroundColor, activeForegroundColor, currentBackgroundColor, currentForegroundColor, currentHoverBackgroundColor, currentActiveBackgroundColor, disabledColor);
|
|
79
131
|
};
|
|
80
132
|
const sizeStyles$2 = props => {
|
|
81
133
|
const fontSize = props.theme.fontSizes.md;
|
|
@@ -86,14 +138,11 @@ const sizeStyles$2 = props => {
|
|
|
86
138
|
};
|
|
87
139
|
const StyledPageBase = styled__default.default.button.attrs({
|
|
88
140
|
'data-garden-id': COMPONENT_ID$6,
|
|
89
|
-
'data-garden-version': '9.
|
|
141
|
+
'data-garden-version': '9.1.0'
|
|
90
142
|
}).withConfig({
|
|
91
143
|
displayName: "StyledPageBase",
|
|
92
144
|
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));
|
|
94
|
-
StyledPageBase.defaultProps = {
|
|
95
|
-
theme: reactTheming.DEFAULT_THEME
|
|
96
|
-
};
|
|
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));
|
|
97
146
|
|
|
98
147
|
const COMPONENT_ID$5 = 'pagination.page';
|
|
99
148
|
const sizeStyles$1 = props => {
|
|
@@ -102,39 +151,30 @@ const sizeStyles$1 = props => {
|
|
|
102
151
|
};
|
|
103
152
|
const StyledPage = styled__default.default(StyledPageBase).attrs({
|
|
104
153
|
'data-garden-id': COMPONENT_ID$5,
|
|
105
|
-
'data-garden-version': '9.
|
|
154
|
+
'data-garden-version': '9.1.0'
|
|
106
155
|
}).withConfig({
|
|
107
156
|
displayName: "StyledPage",
|
|
108
157
|
componentId: "sc-sxjfwy-0"
|
|
109
158
|
})(["", ";&[aria-current=\"true\"]{font-weight:", ";}", ";"], props => sizeStyles$1(props), props => props.theme.fontWeights.semibold, props => reactTheming.retrieveComponentStyles(COMPONENT_ID$5, props));
|
|
110
|
-
StyledPage.defaultProps = {
|
|
111
|
-
theme: reactTheming.DEFAULT_THEME
|
|
112
|
-
};
|
|
113
159
|
|
|
114
160
|
const COMPONENT_ID$4 = 'cursor_pagination';
|
|
115
161
|
const StyledCursorPagination = styled__default.default.nav.attrs({
|
|
116
162
|
'data-garden-id': COMPONENT_ID$4,
|
|
117
|
-
'data-garden-version': '9.
|
|
163
|
+
'data-garden-version': '9.1.0'
|
|
118
164
|
}).withConfig({
|
|
119
165
|
displayName: "StyledCursorPagination",
|
|
120
166
|
componentId: "sc-qmfecg-0"
|
|
121
167
|
})(["display:flex;justify-content:center;", ";"], props => reactTheming.retrieveComponentStyles(COMPONENT_ID$4, props));
|
|
122
|
-
StyledCursorPagination.defaultProps = {
|
|
123
|
-
theme: reactTheming.DEFAULT_THEME
|
|
124
|
-
};
|
|
125
168
|
|
|
126
169
|
const COMPONENT_ID$3 = 'cursor_pagination.cursor';
|
|
127
170
|
const StyledCursor = styled__default.default(StyledPageBase).attrs({
|
|
128
171
|
'data-garden-id': COMPONENT_ID$3,
|
|
129
|
-
'data-garden-version': '9.
|
|
172
|
+
'data-garden-version': '9.1.0',
|
|
130
173
|
as: 'button'
|
|
131
174
|
}).withConfig({
|
|
132
175
|
displayName: "StyledCursor",
|
|
133
176
|
componentId: "sc-507ee-0"
|
|
134
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));
|
|
135
|
-
StyledCursor.defaultProps = {
|
|
136
|
-
theme: reactTheming.DEFAULT_THEME
|
|
137
|
-
};
|
|
138
178
|
|
|
139
179
|
const marginStyles = props => {
|
|
140
180
|
const {
|
|
@@ -151,9 +191,6 @@ const StyledIcon = styled__default.default(reactTheming.StyledBaseIcon).withConf
|
|
|
151
191
|
displayName: "StyledIcon",
|
|
152
192
|
componentId: "sc-2vzk6e-0"
|
|
153
193
|
})(["", " transform:", ";"], marginStyles, props => props.theme.rtl && 'rotate(180deg)');
|
|
154
|
-
StyledIcon.defaultProps = {
|
|
155
|
-
theme: reactTheming.DEFAULT_THEME
|
|
156
|
-
};
|
|
157
194
|
|
|
158
195
|
const COMPONENT_ID$2 = 'pagination.gap';
|
|
159
196
|
const sizeStyles = props => {
|
|
@@ -164,43 +201,43 @@ const sizeStyles = props => {
|
|
|
164
201
|
const padding = `${props.theme.space.base * 1.5}px`;
|
|
165
202
|
return styled.css(["padding:0 ", ";min-width:", ";max-width:", ";height:", ";line-height:", ";font-size:", ";"], padding, height, polished.math(`${height} * 2`), height, lineHeight, fontSize);
|
|
166
203
|
};
|
|
204
|
+
const colorStyles = _ref => {
|
|
205
|
+
let {
|
|
206
|
+
theme
|
|
207
|
+
} = _ref;
|
|
208
|
+
return styled.css(["color:", ";"], reactTheming.getColor({
|
|
209
|
+
variable: 'foreground.subtle',
|
|
210
|
+
theme
|
|
211
|
+
}));
|
|
212
|
+
};
|
|
167
213
|
const StyledGapListItem = styled__default.default(StyledListItem).attrs({
|
|
168
214
|
'data-garden-id': COMPONENT_ID$2,
|
|
169
|
-
'data-garden-version': '9.
|
|
215
|
+
'data-garden-version': '9.1.0'
|
|
170
216
|
}).withConfig({
|
|
171
217
|
displayName: "StyledGapListItem",
|
|
172
218
|
componentId: "sc-10wd0iz-0"
|
|
173
|
-
})(["display:inline-block;text-align:center;
|
|
174
|
-
StyledGapListItem.defaultProps = {
|
|
175
|
-
theme: reactTheming.DEFAULT_THEME
|
|
176
|
-
};
|
|
219
|
+
})(["display:inline-block;text-align:center;", ";", " &:hover{color:inherit;}", ";"], sizeStyles, colorStyles, props => reactTheming.retrieveComponentStyles(COMPONENT_ID$2, props));
|
|
177
220
|
|
|
178
221
|
const COMPONENT_ID$1 = 'pagination.navigation';
|
|
179
222
|
const StyledNavigation = styled__default.default(StyledPage).attrs({
|
|
180
223
|
'data-garden-id': COMPONENT_ID$1,
|
|
181
|
-
'data-garden-version': '9.
|
|
224
|
+
'data-garden-version': '9.1.0'
|
|
182
225
|
}).withConfig({
|
|
183
226
|
displayName: "StyledNavigation",
|
|
184
227
|
componentId: "sc-1lpl8pp-0"
|
|
185
228
|
})(["display:flex;align-items:center;justify-content:center;", ";"], props => reactTheming.retrieveComponentStyles(COMPONENT_ID$1, props));
|
|
186
|
-
StyledNavigation.defaultProps = {
|
|
187
|
-
theme: reactTheming.DEFAULT_THEME
|
|
188
|
-
};
|
|
189
229
|
|
|
190
230
|
const COMPONENT_ID = 'pagination.pagination_view';
|
|
191
231
|
const StyledNav = styled__default.default.nav.attrs({
|
|
192
232
|
'data-garden-id': COMPONENT_ID,
|
|
193
|
-
'data-garden-version': '9.
|
|
233
|
+
'data-garden-version': '9.1.0'
|
|
194
234
|
}).withConfig({
|
|
195
235
|
displayName: "StyledNav",
|
|
196
236
|
componentId: "sc-ppnpkw-0"
|
|
197
237
|
})(["", ";"], props => reactTheming.retrieveComponentStyles(COMPONENT_ID, props));
|
|
198
|
-
StyledNav.defaultProps = {
|
|
199
|
-
theme: reactTheming.DEFAULT_THEME
|
|
200
|
-
};
|
|
201
238
|
|
|
202
239
|
var _path$3;
|
|
203
|
-
function _extends$3() { _extends$3 = Object.assign ? Object.assign.bind() : function (
|
|
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); }
|
|
204
241
|
var SvgChevronLeftStroke = function SvgChevronLeftStroke(props) {
|
|
205
242
|
return /*#__PURE__*/React__namespace.createElement("svg", _extends$3({
|
|
206
243
|
xmlns: "http://www.w3.org/2000/svg",
|
|
@@ -216,7 +253,7 @@ var SvgChevronLeftStroke = function SvgChevronLeftStroke(props) {
|
|
|
216
253
|
};
|
|
217
254
|
|
|
218
255
|
var _path$2;
|
|
219
|
-
function _extends$2() { _extends$2 = Object.assign ? Object.assign.bind() : function (
|
|
256
|
+
function _extends$2() { return _extends$2 = 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$2.apply(null, arguments); }
|
|
220
257
|
var SvgChevronRightStroke = function SvgChevronRightStroke(props) {
|
|
221
258
|
return /*#__PURE__*/React__namespace.createElement("svg", _extends$2({
|
|
222
259
|
xmlns: "http://www.w3.org/2000/svg",
|
|
@@ -418,7 +455,7 @@ OffsetPagination.defaultProps = {
|
|
|
418
455
|
OffsetPagination.displayName = 'OffsetPagination';
|
|
419
456
|
|
|
420
457
|
var _path$1;
|
|
421
|
-
function _extends$1() { _extends$1 = Object.assign ? Object.assign.bind() : function (
|
|
458
|
+
function _extends$1() { return _extends$1 = 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$1.apply(null, arguments); }
|
|
422
459
|
var SvgChevronDoubleLeftStroke = function SvgChevronDoubleLeftStroke(props) {
|
|
423
460
|
return /*#__PURE__*/React__namespace.createElement("svg", _extends$1({
|
|
424
461
|
xmlns: "http://www.w3.org/2000/svg",
|
|
@@ -478,7 +515,7 @@ PreviousComponent.displayName = 'CursorPagination.Previous';
|
|
|
478
515
|
const Previous = PreviousComponent;
|
|
479
516
|
|
|
480
517
|
var _path;
|
|
481
|
-
function _extends() { _extends = Object.assign ? Object.assign.bind() : function (
|
|
518
|
+
function _extends() { return _extends = 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.apply(null, arguments); }
|
|
482
519
|
var SvgChevronDoubleRightStroke = function SvgChevronDoubleRightStroke(props) {
|
|
483
520
|
return /*#__PURE__*/React__namespace.createElement("svg", _extends({
|
|
484
521
|
xmlns: "http://www.w3.org/2000/svg",
|
|
@@ -9,13 +9,14 @@ 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
|
-
|
|
12
|
+
declare const CursorPaginationComponent: React.ForwardRefExoticComponent<React.HTMLAttributes<HTMLElement> & React.RefAttributes<HTMLElement>>;
|
|
13
13
|
/**
|
|
14
14
|
* @extends HTMLAttributes<HTMLElement>
|
|
15
15
|
*/
|
|
16
|
-
export declare const CursorPagination:
|
|
16
|
+
export declare const CursorPagination: typeof CursorPaginationComponent & {
|
|
17
17
|
First: typeof First;
|
|
18
18
|
Last: typeof Last;
|
|
19
19
|
Next: typeof Next;
|
|
20
20
|
Previous: typeof Previous;
|
|
21
21
|
};
|
|
22
|
+
export {};
|
|
@@ -4,9 +4,8 @@
|
|
|
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
|
-
/// <reference types="react" />
|
|
8
7
|
import { DefaultTheme } from 'styled-components';
|
|
9
8
|
export interface IStyledIcon {
|
|
10
9
|
$type: 'first' | 'next' | 'previous' | 'last';
|
|
11
10
|
}
|
|
12
|
-
export declare const StyledIcon: import("styled-components").StyledComponent<({ children, theme, ...props }: any) =>
|
|
11
|
+
export declare const StyledIcon: import("styled-components").StyledComponent<({ children, theme, ...props }: any) => React.DetailedReactHTMLElement<any, HTMLElement>, DefaultTheme, {}, never>;
|
|
@@ -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.
|
|
3
|
+
"version": "9.1.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>",
|
|
@@ -22,18 +22,18 @@
|
|
|
22
22
|
"types": "dist/typings/index.d.ts",
|
|
23
23
|
"dependencies": {
|
|
24
24
|
"@zendeskgarden/container-utilities": "^2.0.0",
|
|
25
|
-
"polished": "^4.
|
|
25
|
+
"polished": "^4.3.1",
|
|
26
26
|
"prop-types": "^15.5.7"
|
|
27
27
|
},
|
|
28
28
|
"peerDependencies": {
|
|
29
29
|
"@zendeskgarden/react-theming": ">=9.0.0-next",
|
|
30
|
-
"react": "
|
|
31
|
-
"react-dom": "
|
|
30
|
+
"react": "^16.8.0 || ^17.0.0 || ^18.0.0",
|
|
31
|
+
"react-dom": "^16.8.0 || ^17.0.0 || ^18.0.0",
|
|
32
32
|
"styled-components": "^5.3.1"
|
|
33
33
|
},
|
|
34
34
|
"devDependencies": {
|
|
35
|
-
"@zendeskgarden/react-theming": "^9.
|
|
36
|
-
"@zendeskgarden/svg-icons": "7.
|
|
35
|
+
"@zendeskgarden/react-theming": "^9.1.0",
|
|
36
|
+
"@zendeskgarden/svg-icons": "7.3.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": "
|
|
48
|
+
"gitHead": "a2842d18615ad057d75988fde4df5a0c79d2714e"
|
|
49
49
|
}
|