@zendeskgarden/react-loaders 9.4.0 → 9.5.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/esm/elements/Progress.js +1 -1
- package/dist/esm/styled/StyledInline.js +3 -3
- package/dist/esm/styled/StyledLoadingPlaceholder.js +3 -3
- package/dist/esm/styled/StyledProgress.js +5 -5
- package/dist/esm/styled/StyledSVG.js +3 -3
- package/dist/esm/styled/StyledSkeleton.js +3 -3
- package/dist/index.cjs.js +13 -13
- package/package.json +3 -3
|
@@ -32,7 +32,7 @@ const Progress = React.forwardRef((_ref, ref) => {
|
|
|
32
32
|
return (
|
|
33
33
|
React.createElement(StyledProgressBackground, Object.assign({
|
|
34
34
|
"data-garden-id": COMPONENT_ID,
|
|
35
|
-
"data-garden-version": '9.
|
|
35
|
+
"data-garden-version": '9.5.1',
|
|
36
36
|
"aria-valuemax": 100,
|
|
37
37
|
"aria-valuemin": 0,
|
|
38
38
|
"aria-valuenow": percentage,
|
|
@@ -5,7 +5,7 @@
|
|
|
5
5
|
* found at http://www.apache.org/licenses/LICENSE-2.0.
|
|
6
6
|
*/
|
|
7
7
|
import styled, { css, keyframes } from 'styled-components';
|
|
8
|
-
import {
|
|
8
|
+
import { componentStyles, getColor } from '@zendeskgarden/react-theming';
|
|
9
9
|
|
|
10
10
|
const COMPONENT_ID = 'loaders.inline';
|
|
11
11
|
const colorStyles = _ref => {
|
|
@@ -38,13 +38,13 @@ const StyledCircle = styled.circle.attrs({
|
|
|
38
38
|
})([""]);
|
|
39
39
|
const StyledInline = styled.svg.attrs(props => ({
|
|
40
40
|
'data-garden-id': COMPONENT_ID,
|
|
41
|
-
'data-garden-version': '9.
|
|
41
|
+
'data-garden-version': '9.5.1',
|
|
42
42
|
viewBox: '0 0 16 4',
|
|
43
43
|
width: props.$size,
|
|
44
44
|
height: props.$size * 0.25
|
|
45
45
|
})).withConfig({
|
|
46
46
|
displayName: "StyledInline",
|
|
47
47
|
componentId: "sc-fxsb9l-1"
|
|
48
|
-
})(["", ";", "{opacity:0.2;&:nth-child(1){animation:", " 1s infinite;animation-delay:", ";}&:nth-child(2){animation:", " 1s infinite;animation-delay:0.2s;}&:nth-child(3){animation:", " 1s infinite;animation-delay:", ";}}", ""], colorStyles, StyledCircle, retrieveAnimation, props => props.theme.rtl ? 'unset' : '0.4s', retrieveAnimation, retrieveAnimation, props => props.theme.rtl ? '0.4s' : 'unset',
|
|
48
|
+
})(["", ";", "{opacity:0.2;&:nth-child(1){animation:", " 1s infinite;animation-delay:", ";}&:nth-child(2){animation:", " 1s infinite;animation-delay:0.2s;}&:nth-child(3){animation:", " 1s infinite;animation-delay:", ";}}", ""], colorStyles, StyledCircle, retrieveAnimation, props => props.theme.rtl ? 'unset' : '0.4s', retrieveAnimation, retrieveAnimation, props => props.theme.rtl ? '0.4s' : 'unset', componentStyles);
|
|
49
49
|
|
|
50
50
|
export { StyledCircle, StyledInline };
|
|
@@ -5,16 +5,16 @@
|
|
|
5
5
|
* found at http://www.apache.org/licenses/LICENSE-2.0.
|
|
6
6
|
*/
|
|
7
7
|
import styled from 'styled-components';
|
|
8
|
-
import {
|
|
8
|
+
import { componentStyles } from '@zendeskgarden/react-theming';
|
|
9
9
|
|
|
10
10
|
const COMPONENT_ID = 'loaders.loading_placeholder';
|
|
11
11
|
const StyledLoadingPlaceholder = styled.div.attrs({
|
|
12
12
|
'data-garden-id': COMPONENT_ID,
|
|
13
|
-
'data-garden-version': '9.
|
|
13
|
+
'data-garden-version': '9.5.1',
|
|
14
14
|
role: 'progressbar'
|
|
15
15
|
}).withConfig({
|
|
16
16
|
displayName: "StyledLoadingPlaceholder",
|
|
17
17
|
componentId: "sc-x3bwsx-0"
|
|
18
|
-
})(["display:inline-block;width:", ";height:", ";font-size:", ";", ""], props => props.width || '1em', props => props.height || '0.9em', props => props.fontSize,
|
|
18
|
+
})(["display:inline-block;width:", ";height:", ";font-size:", ";", ""], props => props.width || '1em', props => props.height || '0.9em', props => props.fontSize, componentStyles);
|
|
19
19
|
|
|
20
20
|
export { StyledLoadingPlaceholder };
|
|
@@ -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 {
|
|
8
|
+
import { componentStyles, getColor } from '@zendeskgarden/react-theming';
|
|
9
9
|
|
|
10
10
|
const sizeToHeight = ($size, theme) => {
|
|
11
11
|
switch ($size) {
|
|
@@ -55,18 +55,18 @@ const colorStyles = _ref => {
|
|
|
55
55
|
};
|
|
56
56
|
const StyledProgressBackground = styled.div.attrs({
|
|
57
57
|
'data-garden-id': PROGRESS_BACKGROUND_COMPONENT_ID,
|
|
58
|
-
'data-garden-version': '9.
|
|
58
|
+
'data-garden-version': '9.5.1'
|
|
59
59
|
}).withConfig({
|
|
60
60
|
displayName: "StyledProgress__StyledProgressBackground",
|
|
61
61
|
componentId: "sc-2g8w4s-0"
|
|
62
|
-
})(["margin:", "px 0;border-radius:", "px;", ";", ""], props => props.theme.space.base * 2, props => sizeToBorderRadius(props.$size, props.theme), colorStyles,
|
|
62
|
+
})(["margin:", "px 0;border-radius:", "px;", ";", ""], props => props.theme.space.base * 2, props => sizeToBorderRadius(props.$size, props.theme), colorStyles, componentStyles);
|
|
63
63
|
const PROGESS_INDICATOR_COMPONENT_ID = 'loaders.progress_indicator';
|
|
64
64
|
const StyledProgressIndicator = styled.div.attrs({
|
|
65
65
|
'data-garden-id': PROGESS_INDICATOR_COMPONENT_ID,
|
|
66
|
-
'data-garden-version': '9.
|
|
66
|
+
'data-garden-version': '9.5.1'
|
|
67
67
|
}).withConfig({
|
|
68
68
|
displayName: "StyledProgress__StyledProgressIndicator",
|
|
69
69
|
componentId: "sc-2g8w4s-1"
|
|
70
|
-
})(["transition:width 0.1s ease-in-out;border-radius:", "px;background:currentcolor;width:", "%;height:", "px;", ""], props => sizeToBorderRadius(props.$size, props.theme), props => props.$value, props => sizeToHeight(props.$size, props.theme),
|
|
70
|
+
})(["transition:width 0.1s ease-in-out;border-radius:", "px;background:currentcolor;width:", "%;height:", "px;", ""], props => sizeToBorderRadius(props.$size, props.theme), props => props.$value, props => sizeToHeight(props.$size, props.theme), componentStyles);
|
|
71
71
|
|
|
72
72
|
export { StyledProgressBackground, StyledProgressIndicator };
|
|
@@ -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 {
|
|
8
|
+
import { componentStyles, getColor } from '@zendeskgarden/react-theming';
|
|
9
9
|
|
|
10
10
|
const colorStyles = _ref => {
|
|
11
11
|
let {
|
|
@@ -22,7 +22,7 @@ const colorStyles = _ref => {
|
|
|
22
22
|
return css(["color:", ";"], getColor(options));
|
|
23
23
|
};
|
|
24
24
|
const StyledSVG = styled.svg.attrs(props => ({
|
|
25
|
-
'data-garden-version': '9.
|
|
25
|
+
'data-garden-version': '9.5.1',
|
|
26
26
|
xmlns: 'http://www.w3.org/2000/svg',
|
|
27
27
|
focusable: 'false',
|
|
28
28
|
viewBox: `0 0 ${props.$width} ${props.$height}`,
|
|
@@ -30,6 +30,6 @@ const StyledSVG = styled.svg.attrs(props => ({
|
|
|
30
30
|
})).withConfig({
|
|
31
31
|
displayName: "StyledSVG",
|
|
32
32
|
componentId: "sc-1xtc3kx-0"
|
|
33
|
-
})(["width:", ";height:", ";font-size:", ";", ";", ";"], props => props.$containerWidth || '1em', props => props.$containerHeight || '0.9em', props => props.$fontSize || 'inherit', colorStyles,
|
|
33
|
+
})(["width:", ";height:", ";font-size:", ";", ";", ";"], props => props.$containerWidth || '1em', props => props.$containerHeight || '0.9em', props => props.$fontSize || 'inherit', colorStyles, componentStyles);
|
|
34
34
|
|
|
35
35
|
export { StyledSVG };
|
|
@@ -5,7 +5,7 @@
|
|
|
5
5
|
* found at http://www.apache.org/licenses/LICENSE-2.0.
|
|
6
6
|
*/
|
|
7
7
|
import styled, { keyframes, css } from 'styled-components';
|
|
8
|
-
import { getLineHeight,
|
|
8
|
+
import { getLineHeight, componentStyles, getColor } from '@zendeskgarden/react-theming';
|
|
9
9
|
|
|
10
10
|
const COMPONENT_ID = 'loaders.skeleton';
|
|
11
11
|
const fadeInAnimation = keyframes(["0%,60%{opacity:0;}100%{opacity:1;}"]);
|
|
@@ -52,10 +52,10 @@ const gradientStyles = props => {
|
|
|
52
52
|
};
|
|
53
53
|
const StyledSkeleton = styled.div.attrs({
|
|
54
54
|
'data-garden-id': COMPONENT_ID,
|
|
55
|
-
'data-garden-version': '9.
|
|
55
|
+
'data-garden-version': '9.5.1'
|
|
56
56
|
}).withConfig({
|
|
57
57
|
displayName: "StyledSkeleton",
|
|
58
58
|
componentId: "sc-1raozze-0"
|
|
59
|
-
})(["display:inline-block;position:relative;animation:", " 750ms linear;border-radius:", ";background-color:", ";width:", ";height:", ";overflow:hidden;line-height:", ";&::before{position:absolute;top:0;width:1000px;height:100%;content:'';", " ", "}", ";"], fadeInAnimation, props => props.theme.borderRadii.md, getBackgroundColor, props => props.$width, props => props.$height, props => getLineHeight(props.theme.fontSizes.sm, props.theme.space.base * 5), animationStyles, gradientStyles,
|
|
59
|
+
})(["display:inline-block;position:relative;animation:", " 750ms linear;border-radius:", ";background-color:", ";width:", ";height:", ";overflow:hidden;line-height:", ";&::before{position:absolute;top:0;width:1000px;height:100%;content:'';", " ", "}", ";"], fadeInAnimation, props => props.theme.borderRadii.md, getBackgroundColor, props => props.$width, props => props.$height, props => getLineHeight(props.theme.fontSizes.sm, props.theme.space.base * 5), animationStyles, gradientStyles, componentStyles);
|
|
60
60
|
|
|
61
61
|
export { StyledSkeleton };
|
package/dist/index.cjs.js
CHANGED
|
@@ -54,12 +54,12 @@ const StyledDotsCircleThree = styled__default.default(StyledDotsCircle).attrs(()
|
|
|
54
54
|
const COMPONENT_ID$5 = 'loaders.loading_placeholder';
|
|
55
55
|
const StyledLoadingPlaceholder = styled__default.default.div.attrs({
|
|
56
56
|
'data-garden-id': COMPONENT_ID$5,
|
|
57
|
-
'data-garden-version': '9.
|
|
57
|
+
'data-garden-version': '9.5.1',
|
|
58
58
|
role: 'progressbar'
|
|
59
59
|
}).withConfig({
|
|
60
60
|
displayName: "StyledLoadingPlaceholder",
|
|
61
61
|
componentId: "sc-x3bwsx-0"
|
|
62
|
-
})(["display:inline-block;width:", ";height:", ";font-size:", ";", ""], props => props.width || '1em', props => props.height || '0.9em', props => props.fontSize,
|
|
62
|
+
})(["display:inline-block;width:", ";height:", ";font-size:", ";", ""], props => props.width || '1em', props => props.height || '0.9em', props => props.fontSize, reactTheming.componentStyles);
|
|
63
63
|
|
|
64
64
|
const sizeToHeight = ($size, theme) => {
|
|
65
65
|
switch ($size) {
|
|
@@ -109,19 +109,19 @@ const colorStyles$2 = _ref => {
|
|
|
109
109
|
};
|
|
110
110
|
const StyledProgressBackground = styled__default.default.div.attrs({
|
|
111
111
|
'data-garden-id': PROGRESS_BACKGROUND_COMPONENT_ID,
|
|
112
|
-
'data-garden-version': '9.
|
|
112
|
+
'data-garden-version': '9.5.1'
|
|
113
113
|
}).withConfig({
|
|
114
114
|
displayName: "StyledProgress__StyledProgressBackground",
|
|
115
115
|
componentId: "sc-2g8w4s-0"
|
|
116
|
-
})(["margin:", "px 0;border-radius:", "px;", ";", ""], props => props.theme.space.base * 2, props => sizeToBorderRadius(props.$size, props.theme), colorStyles$2,
|
|
116
|
+
})(["margin:", "px 0;border-radius:", "px;", ";", ""], props => props.theme.space.base * 2, props => sizeToBorderRadius(props.$size, props.theme), colorStyles$2, reactTheming.componentStyles);
|
|
117
117
|
const PROGESS_INDICATOR_COMPONENT_ID = 'loaders.progress_indicator';
|
|
118
118
|
const StyledProgressIndicator = styled__default.default.div.attrs({
|
|
119
119
|
'data-garden-id': PROGESS_INDICATOR_COMPONENT_ID,
|
|
120
|
-
'data-garden-version': '9.
|
|
120
|
+
'data-garden-version': '9.5.1'
|
|
121
121
|
}).withConfig({
|
|
122
122
|
displayName: "StyledProgress__StyledProgressIndicator",
|
|
123
123
|
componentId: "sc-2g8w4s-1"
|
|
124
|
-
})(["transition:width 0.1s ease-in-out;border-radius:", "px;background:currentcolor;width:", "%;height:", "px;", ""], props => sizeToBorderRadius(props.$size, props.theme), props => props.$value, props => sizeToHeight(props.$size, props.theme),
|
|
124
|
+
})(["transition:width 0.1s ease-in-out;border-radius:", "px;background:currentcolor;width:", "%;height:", "px;", ""], props => sizeToBorderRadius(props.$size, props.theme), props => props.$value, props => sizeToHeight(props.$size, props.theme), reactTheming.componentStyles);
|
|
125
125
|
|
|
126
126
|
const COMPONENT_ID$4 = 'loaders.skeleton';
|
|
127
127
|
const fadeInAnimation = styled.keyframes(["0%,60%{opacity:0;}100%{opacity:1;}"]);
|
|
@@ -168,11 +168,11 @@ const gradientStyles = props => {
|
|
|
168
168
|
};
|
|
169
169
|
const StyledSkeleton = styled__default.default.div.attrs({
|
|
170
170
|
'data-garden-id': COMPONENT_ID$4,
|
|
171
|
-
'data-garden-version': '9.
|
|
171
|
+
'data-garden-version': '9.5.1'
|
|
172
172
|
}).withConfig({
|
|
173
173
|
displayName: "StyledSkeleton",
|
|
174
174
|
componentId: "sc-1raozze-0"
|
|
175
|
-
})(["display:inline-block;position:relative;animation:", " 750ms linear;border-radius:", ";background-color:", ";width:", ";height:", ";overflow:hidden;line-height:", ";&::before{position:absolute;top:0;width:1000px;height:100%;content:'';", " ", "}", ";"], fadeInAnimation, props => props.theme.borderRadii.md, getBackgroundColor, props => props.$width, props => props.$height, props => reactTheming.getLineHeight(props.theme.fontSizes.sm, props.theme.space.base * 5), animationStyles, gradientStyles,
|
|
175
|
+
})(["display:inline-block;position:relative;animation:", " 750ms linear;border-radius:", ";background-color:", ";width:", ";height:", ";overflow:hidden;line-height:", ";&::before{position:absolute;top:0;width:1000px;height:100%;content:'';", " ", "}", ";"], fadeInAnimation, props => props.theme.borderRadii.md, getBackgroundColor, props => props.$width, props => props.$height, props => reactTheming.getLineHeight(props.theme.fontSizes.sm, props.theme.space.base * 5), animationStyles, gradientStyles, reactTheming.componentStyles);
|
|
176
176
|
|
|
177
177
|
const StyledSpinnerCircle = styled__default.default.circle.attrs(props => ({
|
|
178
178
|
cx: 40,
|
|
@@ -204,7 +204,7 @@ const colorStyles$1 = _ref => {
|
|
|
204
204
|
return styled.css(["color:", ";"], reactTheming.getColor(options));
|
|
205
205
|
};
|
|
206
206
|
const StyledSVG = styled__default.default.svg.attrs(props => ({
|
|
207
|
-
'data-garden-version': '9.
|
|
207
|
+
'data-garden-version': '9.5.1',
|
|
208
208
|
xmlns: 'http://www.w3.org/2000/svg',
|
|
209
209
|
focusable: 'false',
|
|
210
210
|
viewBox: `0 0 ${props.$width} ${props.$height}`,
|
|
@@ -212,7 +212,7 @@ const StyledSVG = styled__default.default.svg.attrs(props => ({
|
|
|
212
212
|
})).withConfig({
|
|
213
213
|
displayName: "StyledSVG",
|
|
214
214
|
componentId: "sc-1xtc3kx-0"
|
|
215
|
-
})(["width:", ";height:", ";font-size:", ";", ";", ";"], props => props.$containerWidth || '1em', props => props.$containerHeight || '0.9em', props => props.$fontSize || 'inherit', colorStyles$1,
|
|
215
|
+
})(["width:", ";height:", ";font-size:", ";", ";", ";"], props => props.$containerWidth || '1em', props => props.$containerHeight || '0.9em', props => props.$fontSize || 'inherit', colorStyles$1, reactTheming.componentStyles);
|
|
216
216
|
|
|
217
217
|
const COMPONENT_ID$3 = 'loaders.inline';
|
|
218
218
|
const colorStyles = _ref => {
|
|
@@ -245,14 +245,14 @@ const StyledCircle = styled__default.default.circle.attrs({
|
|
|
245
245
|
})([""]);
|
|
246
246
|
const StyledInline = styled__default.default.svg.attrs(props => ({
|
|
247
247
|
'data-garden-id': COMPONENT_ID$3,
|
|
248
|
-
'data-garden-version': '9.
|
|
248
|
+
'data-garden-version': '9.5.1',
|
|
249
249
|
viewBox: '0 0 16 4',
|
|
250
250
|
width: props.$size,
|
|
251
251
|
height: props.$size * 0.25
|
|
252
252
|
})).withConfig({
|
|
253
253
|
displayName: "StyledInline",
|
|
254
254
|
componentId: "sc-fxsb9l-1"
|
|
255
|
-
})(["", ";", "{opacity:0.2;&:nth-child(1){animation:", " 1s infinite;animation-delay:", ";}&:nth-child(2){animation:", " 1s infinite;animation-delay:0.2s;}&:nth-child(3){animation:", " 1s infinite;animation-delay:", ";}}", ""], colorStyles, StyledCircle, retrieveAnimation, props => props.theme.rtl ? 'unset' : '0.4s', retrieveAnimation, retrieveAnimation, props => props.theme.rtl ? '0.4s' : 'unset',
|
|
255
|
+
})(["", ";", "{opacity:0.2;&:nth-child(1){animation:", " 1s infinite;animation-delay:", ";}&:nth-child(2){animation:", " 1s infinite;animation-delay:0.2s;}&:nth-child(3){animation:", " 1s infinite;animation-delay:", ";}}", ""], colorStyles, StyledCircle, retrieveAnimation, props => props.theme.rtl ? 'unset' : '0.4s', retrieveAnimation, retrieveAnimation, props => props.theme.rtl ? '0.4s' : 'unset', reactTheming.componentStyles);
|
|
256
256
|
|
|
257
257
|
const COMPONENT_ID$2 = 'loaders.dots';
|
|
258
258
|
const Dots = React.forwardRef((_ref, ref) => {
|
|
@@ -345,7 +345,7 @@ const Progress = React__default.default.forwardRef((_ref, ref) => {
|
|
|
345
345
|
return (
|
|
346
346
|
React__default.default.createElement(StyledProgressBackground, Object.assign({
|
|
347
347
|
"data-garden-id": COMPONENT_ID$1,
|
|
348
|
-
"data-garden-version": '9.
|
|
348
|
+
"data-garden-version": '9.5.1',
|
|
349
349
|
"aria-valuemax": 100,
|
|
350
350
|
"aria-valuemin": 0,
|
|
351
351
|
"aria-valuenow": percentage,
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@zendeskgarden/react-loaders",
|
|
3
|
-
"version": "9.
|
|
3
|
+
"version": "9.5.1",
|
|
4
4
|
"description": "Components relating to loaders 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 || ^6.0.0"
|
|
33
33
|
},
|
|
34
34
|
"devDependencies": {
|
|
35
|
-
"@zendeskgarden/react-theming": "^9.
|
|
35
|
+
"@zendeskgarden/react-theming": "^9.5.1"
|
|
36
36
|
},
|
|
37
37
|
"keywords": [
|
|
38
38
|
"components",
|
|
@@ -44,5 +44,5 @@
|
|
|
44
44
|
"access": "public"
|
|
45
45
|
},
|
|
46
46
|
"zendeskgarden:src": "src/index.ts",
|
|
47
|
-
"gitHead": "
|
|
47
|
+
"gitHead": "2571d0225b784bb7c765316ed584d289d35d4605"
|
|
48
48
|
}
|