@zendeskgarden/react-pagination 9.0.0-next.9 → 9.0.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 +0 -1
- package/dist/typings/styled/OffsetPagination/StyledList.d.ts +2 -1
- package/package.json +7 -8
- package/LICENSE.md +0 -176
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.0.0
|
|
14
|
+
'data-garden-version': '9.0.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.0.0
|
|
13
|
+
'data-garden-version': '9.0.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.0.0
|
|
32
|
+
'data-garden-version': '9.0.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.0.0
|
|
22
|
+
'data-garden-version': '9.0.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.0.0
|
|
13
|
+
'data-garden-version': '9.0.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.0.0
|
|
13
|
+
'data-garden-version': '9.0.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.0.0
|
|
14
|
+
'data-garden-version': '9.0.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.0.0
|
|
18
|
+
'data-garden-version': '9.0.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.0.0
|
|
84
|
+
'data-garden-version': '9.0.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.0.0
|
|
52
|
+
'data-garden-version': '9.0.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.0.0
|
|
61
|
+
'data-garden-version': '9.0.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.0.0
|
|
141
|
+
'data-garden-version': '9.0.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.0.0
|
|
154
|
+
'data-garden-version': '9.0.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.0.0
|
|
163
|
+
'data-garden-version': '9.0.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.0.0
|
|
172
|
+
'data-garden-version': '9.0.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.0.0
|
|
215
|
+
'data-garden-version': '9.0.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.0.0
|
|
224
|
+
'data-garden-version': '9.0.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.0.0
|
|
233
|
+
'data-garden-version': '9.0.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,7 +4,6 @@
|
|
|
4
4
|
* Use of this source code is governed under the Apache License, Version 2.0
|
|
5
5
|
* found at http://www.apache.org/licenses/LICENSE-2.0.
|
|
6
6
|
*/
|
|
7
|
-
/// <reference types="react" />
|
|
8
7
|
import { DefaultTheme } from 'styled-components';
|
|
9
8
|
export interface IStyledIcon {
|
|
10
9
|
$type: 'first' | 'next' | 'previous' | 'last';
|
|
@@ -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
|
|
3
|
+
"version": "9.0.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.0.0
|
|
36
|
-
"@zendeskgarden/svg-icons": "7.
|
|
35
|
+
"@zendeskgarden/react-theming": "^9.0.0",
|
|
36
|
+
"@zendeskgarden/svg-icons": "7.2.0"
|
|
37
37
|
},
|
|
38
38
|
"keywords": [
|
|
39
39
|
"components",
|
|
@@ -44,6 +44,5 @@
|
|
|
44
44
|
"publishConfig": {
|
|
45
45
|
"access": "public"
|
|
46
46
|
},
|
|
47
|
-
"zendeskgarden:src": "src/index.ts"
|
|
48
|
-
"gitHead": "771281b562d376a6aee04b0cd71dd888b3ae4a1d"
|
|
47
|
+
"zendeskgarden:src": "src/index.ts"
|
|
49
48
|
}
|
package/LICENSE.md
DELETED
|
@@ -1,176 +0,0 @@
|
|
|
1
|
-
Apache License
|
|
2
|
-
Version 2.0, January 2004
|
|
3
|
-
http://www.apache.org/licenses/
|
|
4
|
-
|
|
5
|
-
TERMS AND CONDITIONS FOR USE, REPRODUCTION, AND DISTRIBUTION
|
|
6
|
-
|
|
7
|
-
1. Definitions.
|
|
8
|
-
|
|
9
|
-
"License" shall mean the terms and conditions for use, reproduction,
|
|
10
|
-
and distribution as defined by Sections 1 through 9 of this document.
|
|
11
|
-
|
|
12
|
-
"Licensor" shall mean the copyright owner or entity authorized by
|
|
13
|
-
the copyright owner that is granting the License.
|
|
14
|
-
|
|
15
|
-
"Legal Entity" shall mean the union of the acting entity and all
|
|
16
|
-
other entities that control, are controlled by, or are under common
|
|
17
|
-
control with that entity. For the purposes of this definition,
|
|
18
|
-
"control" means (i) the power, direct or indirect, to cause the
|
|
19
|
-
direction or management of such entity, whether by contract or
|
|
20
|
-
otherwise, or (ii) ownership of fifty percent (50%) or more of the
|
|
21
|
-
outstanding shares, or (iii) beneficial ownership of such entity.
|
|
22
|
-
|
|
23
|
-
"You" (or "Your") shall mean an individual or Legal Entity
|
|
24
|
-
exercising permissions granted by this License.
|
|
25
|
-
|
|
26
|
-
"Source" form shall mean the preferred form for making modifications,
|
|
27
|
-
including but not limited to software source code, documentation
|
|
28
|
-
source, and configuration files.
|
|
29
|
-
|
|
30
|
-
"Object" form shall mean any form resulting from mechanical
|
|
31
|
-
transformation or translation of a Source form, including but
|
|
32
|
-
not limited to compiled object code, generated documentation,
|
|
33
|
-
and conversions to other media types.
|
|
34
|
-
|
|
35
|
-
"Work" shall mean the work of authorship, whether in Source or
|
|
36
|
-
Object form, made available under the License, as indicated by a
|
|
37
|
-
copyright notice that is included in or attached to the work
|
|
38
|
-
(an example is provided in the Appendix below).
|
|
39
|
-
|
|
40
|
-
"Derivative Works" shall mean any work, whether in Source or Object
|
|
41
|
-
form, that is based on (or derived from) the Work and for which the
|
|
42
|
-
editorial revisions, annotations, elaborations, or other modifications
|
|
43
|
-
represent, as a whole, an original work of authorship. For the purposes
|
|
44
|
-
of this License, Derivative Works shall not include works that remain
|
|
45
|
-
separable from, or merely link (or bind by name) to the interfaces of,
|
|
46
|
-
the Work and Derivative Works thereof.
|
|
47
|
-
|
|
48
|
-
"Contribution" shall mean any work of authorship, including
|
|
49
|
-
the original version of the Work and any modifications or additions
|
|
50
|
-
to that Work or Derivative Works thereof, that is intentionally
|
|
51
|
-
submitted to Licensor for inclusion in the Work by the copyright owner
|
|
52
|
-
or by an individual or Legal Entity authorized to submit on behalf of
|
|
53
|
-
the copyright owner. For the purposes of this definition, "submitted"
|
|
54
|
-
means any form of electronic, verbal, or written communication sent
|
|
55
|
-
to the Licensor or its representatives, including but not limited to
|
|
56
|
-
communication on electronic mailing lists, source code control systems,
|
|
57
|
-
and issue tracking systems that are managed by, or on behalf of, the
|
|
58
|
-
Licensor for the purpose of discussing and improving the Work, but
|
|
59
|
-
excluding communication that is conspicuously marked or otherwise
|
|
60
|
-
designated in writing by the copyright owner as "Not a Contribution."
|
|
61
|
-
|
|
62
|
-
"Contributor" shall mean Licensor and any individual or Legal Entity
|
|
63
|
-
on behalf of whom a Contribution has been received by Licensor and
|
|
64
|
-
subsequently incorporated within the Work.
|
|
65
|
-
|
|
66
|
-
2. Grant of Copyright License. Subject to the terms and conditions of
|
|
67
|
-
this License, each Contributor hereby grants to You a perpetual,
|
|
68
|
-
worldwide, non-exclusive, no-charge, royalty-free, irrevocable
|
|
69
|
-
copyright license to reproduce, prepare Derivative Works of,
|
|
70
|
-
publicly display, publicly perform, sublicense, and distribute the
|
|
71
|
-
Work and such Derivative Works in Source or Object form.
|
|
72
|
-
|
|
73
|
-
3. Grant of Patent License. Subject to the terms and conditions of
|
|
74
|
-
this License, each Contributor hereby grants to You a perpetual,
|
|
75
|
-
worldwide, non-exclusive, no-charge, royalty-free, irrevocable
|
|
76
|
-
(except as stated in this section) patent license to make, have made,
|
|
77
|
-
use, offer to sell, sell, import, and otherwise transfer the Work,
|
|
78
|
-
where such license applies only to those patent claims licensable
|
|
79
|
-
by such Contributor that are necessarily infringed by their
|
|
80
|
-
Contribution(s) alone or by combination of their Contribution(s)
|
|
81
|
-
with the Work to which such Contribution(s) was submitted. If You
|
|
82
|
-
institute patent litigation against any entity (including a
|
|
83
|
-
cross-claim or counterclaim in a lawsuit) alleging that the Work
|
|
84
|
-
or a Contribution incorporated within the Work constitutes direct
|
|
85
|
-
or contributory patent infringement, then any patent licenses
|
|
86
|
-
granted to You under this License for that Work shall terminate
|
|
87
|
-
as of the date such litigation is filed.
|
|
88
|
-
|
|
89
|
-
4. Redistribution. You may reproduce and distribute copies of the
|
|
90
|
-
Work or Derivative Works thereof in any medium, with or without
|
|
91
|
-
modifications, and in Source or Object form, provided that You
|
|
92
|
-
meet the following conditions:
|
|
93
|
-
|
|
94
|
-
(a) You must give any other recipients of the Work or
|
|
95
|
-
Derivative Works a copy of this License; and
|
|
96
|
-
|
|
97
|
-
(b) You must cause any modified files to carry prominent notices
|
|
98
|
-
stating that You changed the files; and
|
|
99
|
-
|
|
100
|
-
(c) You must retain, in the Source form of any Derivative Works
|
|
101
|
-
that You distribute, all copyright, patent, trademark, and
|
|
102
|
-
attribution notices from the Source form of the Work,
|
|
103
|
-
excluding those notices that do not pertain to any part of
|
|
104
|
-
the Derivative Works; and
|
|
105
|
-
|
|
106
|
-
(d) If the Work includes a "NOTICE" text file as part of its
|
|
107
|
-
distribution, then any Derivative Works that You distribute must
|
|
108
|
-
include a readable copy of the attribution notices contained
|
|
109
|
-
within such NOTICE file, excluding those notices that do not
|
|
110
|
-
pertain to any part of the Derivative Works, in at least one
|
|
111
|
-
of the following places: within a NOTICE text file distributed
|
|
112
|
-
as part of the Derivative Works; within the Source form or
|
|
113
|
-
documentation, if provided along with the Derivative Works; or,
|
|
114
|
-
within a display generated by the Derivative Works, if and
|
|
115
|
-
wherever such third-party notices normally appear. The contents
|
|
116
|
-
of the NOTICE file are for informational purposes only and
|
|
117
|
-
do not modify the License. You may add Your own attribution
|
|
118
|
-
notices within Derivative Works that You distribute, alongside
|
|
119
|
-
or as an addendum to the NOTICE text from the Work, provided
|
|
120
|
-
that such additional attribution notices cannot be construed
|
|
121
|
-
as modifying the License.
|
|
122
|
-
|
|
123
|
-
You may add Your own copyright statement to Your modifications and
|
|
124
|
-
may provide additional or different license terms and conditions
|
|
125
|
-
for use, reproduction, or distribution of Your modifications, or
|
|
126
|
-
for any such Derivative Works as a whole, provided Your use,
|
|
127
|
-
reproduction, and distribution of the Work otherwise complies with
|
|
128
|
-
the conditions stated in this License.
|
|
129
|
-
|
|
130
|
-
5. Submission of Contributions. Unless You explicitly state otherwise,
|
|
131
|
-
any Contribution intentionally submitted for inclusion in the Work
|
|
132
|
-
by You to the Licensor shall be under the terms and conditions of
|
|
133
|
-
this License, without any additional terms or conditions.
|
|
134
|
-
Notwithstanding the above, nothing herein shall supersede or modify
|
|
135
|
-
the terms of any separate license agreement you may have executed
|
|
136
|
-
with Licensor regarding such Contributions.
|
|
137
|
-
|
|
138
|
-
6. Trademarks. This License does not grant permission to use the trade
|
|
139
|
-
names, trademarks, service marks, or product names of the Licensor,
|
|
140
|
-
except as required for reasonable and customary use in describing the
|
|
141
|
-
origin of the Work and reproducing the content of the NOTICE file.
|
|
142
|
-
|
|
143
|
-
7. Disclaimer of Warranty. Unless required by applicable law or
|
|
144
|
-
agreed to in writing, Licensor provides the Work (and each
|
|
145
|
-
Contributor provides its Contributions) on an "AS IS" BASIS,
|
|
146
|
-
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or
|
|
147
|
-
implied, including, without limitation, any warranties or conditions
|
|
148
|
-
of TITLE, NON-INFRINGEMENT, MERCHANTABILITY, or FITNESS FOR A
|
|
149
|
-
PARTICULAR PURPOSE. You are solely responsible for determining the
|
|
150
|
-
appropriateness of using or redistributing the Work and assume any
|
|
151
|
-
risks associated with Your exercise of permissions under this License.
|
|
152
|
-
|
|
153
|
-
8. Limitation of Liability. In no event and under no legal theory,
|
|
154
|
-
whether in tort (including negligence), contract, or otherwise,
|
|
155
|
-
unless required by applicable law (such as deliberate and grossly
|
|
156
|
-
negligent acts) or agreed to in writing, shall any Contributor be
|
|
157
|
-
liable to You for damages, including any direct, indirect, special,
|
|
158
|
-
incidental, or consequential damages of any character arising as a
|
|
159
|
-
result of this License or out of the use or inability to use the
|
|
160
|
-
Work (including but not limited to damages for loss of goodwill,
|
|
161
|
-
work stoppage, computer failure or malfunction, or any and all
|
|
162
|
-
other commercial damages or losses), even if such Contributor
|
|
163
|
-
has been advised of the possibility of such damages.
|
|
164
|
-
|
|
165
|
-
9. Accepting Warranty or Additional Liability. While redistributing
|
|
166
|
-
the Work or Derivative Works thereof, You may choose to offer,
|
|
167
|
-
and charge a fee for, acceptance of support, warranty, indemnity,
|
|
168
|
-
or other liability obligations and/or rights consistent with this
|
|
169
|
-
License. However, in accepting such obligations, You may act only
|
|
170
|
-
on Your own behalf and on Your sole responsibility, not on behalf
|
|
171
|
-
of any other Contributor, and only if You agree to indemnify,
|
|
172
|
-
defend, and hold each Contributor harmless for any liability
|
|
173
|
-
incurred by, or claims asserted against, such Contributor by reason
|
|
174
|
-
of your accepting any such warranty or additional liability.
|
|
175
|
-
|
|
176
|
-
END OF TERMS AND CONDITIONS
|