@zendeskgarden/react-loaders 9.1.1 → 9.2.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.
@@ -57,22 +57,22 @@ const Dots = forwardRef((_ref, ref) => {
57
57
  }, "\xA0");
58
58
  }
59
59
  return React.createElement(StyledSVG, Object.assign({
60
+ "data-garden-id": COMPONENT_ID,
60
61
  ref: ref,
61
- fontSize: size,
62
- color: color,
63
- width: "80",
64
- height: "72",
65
- dataGardenId: COMPONENT_ID
62
+ $fontSize: size,
63
+ $color: color,
64
+ $width: "80",
65
+ $height: "72"
66
66
  }, other), React.createElement("g", {
67
67
  fill: "currentColor"
68
68
  }, React.createElement(StyledDotsCircleOne, {
69
- duration: duration,
69
+ $duration: duration,
70
70
  ref: dotOne
71
71
  }), React.createElement(StyledDotsCircleTwo, {
72
- duration: duration,
72
+ $duration: duration,
73
73
  ref: dotTwo
74
74
  }), React.createElement(StyledDotsCircleThree, {
75
- duration: duration,
75
+ $duration: duration,
76
76
  ref: dotThree
77
77
  })));
78
78
  });
@@ -25,8 +25,8 @@ const Inline = forwardRef((_ref, ref) => {
25
25
  return (
26
26
  React.createElement(StyledInline, Object.assign({
27
27
  ref: ref,
28
- size: size,
29
- color: color,
28
+ $size: size,
29
+ $color: color,
30
30
  "aria-label": ariaLabel,
31
31
  role: "img"
32
32
  }, other), React.createElement(StyledCircle, {
@@ -19,6 +19,7 @@ import '../styled/StyledInline.js';
19
19
  const COMPONENT_ID = 'loaders.progress';
20
20
  const Progress = React.forwardRef((_ref, ref) => {
21
21
  let {
22
+ color,
22
23
  value,
23
24
  size,
24
25
  'aria-label': label,
@@ -31,17 +32,18 @@ const Progress = React.forwardRef((_ref, ref) => {
31
32
  return (
32
33
  React.createElement(StyledProgressBackground, Object.assign({
33
34
  "data-garden-id": COMPONENT_ID,
34
- "data-garden-version": '9.1.1',
35
+ "data-garden-version": '9.2.0',
35
36
  "aria-valuemax": 100,
36
37
  "aria-valuemin": 0,
37
38
  "aria-valuenow": percentage,
38
39
  role: "progressbar",
39
- size: size,
40
+ $size: size,
41
+ $color: color,
40
42
  ref: ref,
41
43
  "aria-label": ariaLabel
42
44
  }, other), React.createElement(StyledProgressIndicator, {
43
- value: percentage,
44
- size: size
45
+ $value: percentage,
46
+ $size: size
45
47
  }))
46
48
  );
47
49
  });
@@ -68,17 +68,17 @@ const Spinner = forwardRef((_ref, ref) => {
68
68
  }, "\xA0");
69
69
  }
70
70
  return React.createElement(StyledSVG, Object.assign({
71
+ $color: color,
72
+ $containerHeight: "1em",
73
+ $containerWidth: "1em",
74
+ $fontSize: size,
75
+ "data-garden-id": COMPONENT_ID,
76
+ $height: HEIGHT,
71
77
  ref: ref,
72
- fontSize: size,
73
- color: color,
74
- width: WIDTH,
75
- height: HEIGHT,
76
- dataGardenId: COMPONENT_ID,
77
- containerHeight: "1em",
78
- containerWidth: "1em"
78
+ $width: WIDTH
79
79
  }, other), React.createElement(StyledSpinnerCircle, {
80
- dasharrayValue: dasharrayValue,
81
- strokeWidthValue: strokeWidthValue,
80
+ $dasharrayValue: dasharrayValue,
81
+ $strokeWidthValue: strokeWidthValue,
82
82
  transform: `rotate(${rotationValue}, ${WIDTH / 2}, ${HEIGHT / 2})`
83
83
  }));
84
84
  });
@@ -15,7 +15,7 @@ const StyledDotsCircle = styled.circle.attrs({
15
15
  componentId: "sc-1ltah7e-0"
16
16
  })([""]);
17
17
  const animationStyles = (animationName, props) => {
18
- return css(["animation:", " ", "ms linear infinite;"], animationName, props.duration);
18
+ return css(["animation:", " ", "ms linear infinite;"], animationName, props.$duration);
19
19
  };
20
20
  const StyledDotsCircleOne = styled(StyledDotsCircle).attrs({
21
21
  cx: 9
@@ -11,13 +11,13 @@ const COMPONENT_ID = 'loaders.inline';
11
11
  const colorStyles = _ref => {
12
12
  let {
13
13
  theme,
14
- color
14
+ $color
15
15
  } = _ref;
16
- const options = color.includes('.') ? {
17
- variable: color,
16
+ const options = $color.includes('.') ? {
17
+ variable: $color,
18
18
  theme
19
19
  } : {
20
- hue: color,
20
+ hue: $color,
21
21
  theme
22
22
  };
23
23
  return css(["color:", ";"], getColor(options));
@@ -38,10 +38,10 @@ 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.1.1',
41
+ 'data-garden-version': '9.2.0',
42
42
  viewBox: '0 0 16 4',
43
- width: props.size,
44
- height: props.size * 0.25
43
+ width: props.$size,
44
+ height: props.$size * 0.25
45
45
  })).withConfig({
46
46
  displayName: "StyledInline",
47
47
  componentId: "sc-fxsb9l-1"
@@ -10,7 +10,7 @@ import { retrieveComponentStyles } from '@zendeskgarden/react-theming';
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.1.1',
13
+ 'data-garden-version': '9.2.0',
14
14
  role: 'progressbar'
15
15
  }).withConfig({
16
16
  displayName: "StyledLoadingPlaceholder",
@@ -7,8 +7,8 @@
7
7
  import styled, { css } from 'styled-components';
8
8
  import { retrieveComponentStyles, getColor } from '@zendeskgarden/react-theming';
9
9
 
10
- const sizeToHeight = (size, theme) => {
11
- switch (size) {
10
+ const sizeToHeight = ($size, theme) => {
11
+ switch ($size) {
12
12
  case 'small':
13
13
  return theme.space.base / 2;
14
14
  case 'medium':
@@ -17,12 +17,12 @@ const sizeToHeight = (size, theme) => {
17
17
  return theme.space.base * 3;
18
18
  }
19
19
  };
20
- const sizeToBorderRadius = (size, theme) => sizeToHeight(size, theme) / 2;
20
+ const sizeToBorderRadius = ($size, theme) => sizeToHeight($size, theme) / 2;
21
21
  const PROGRESS_BACKGROUND_COMPONENT_ID = 'loaders.progress_background';
22
22
  const colorStyles = _ref => {
23
23
  let {
24
24
  theme,
25
- color
25
+ $color
26
26
  } = _ref;
27
27
  const backgroundColor = getColor({
28
28
  theme,
@@ -36,12 +36,12 @@ const colorStyles = _ref => {
36
36
  }
37
37
  });
38
38
  let options;
39
- if (color) {
40
- options = color.includes('.') ? {
41
- variable: color,
39
+ if ($color) {
40
+ options = $color.includes('.') ? {
41
+ variable: $color,
42
42
  theme
43
43
  } : {
44
- hue: color,
44
+ hue: $color,
45
45
  theme
46
46
  };
47
47
  } else {
@@ -53,23 +53,20 @@ const colorStyles = _ref => {
53
53
  const foregroundColor = getColor(options);
54
54
  return css(["background-color:", ";color:", ";"], backgroundColor, foregroundColor);
55
55
  };
56
- const StyledProgressBackground = styled.div.attrs(props => ({
56
+ const StyledProgressBackground = styled.div.attrs({
57
57
  'data-garden-id': PROGRESS_BACKGROUND_COMPONENT_ID,
58
- 'data-garden-version': '9.1.1',
59
- borderRadius: props.borderRadius || sizeToBorderRadius(props.size, props.theme)
60
- })).withConfig({
58
+ 'data-garden-version': '9.2.0'
59
+ }).withConfig({
61
60
  displayName: "StyledProgress__StyledProgressBackground",
62
61
  componentId: "sc-2g8w4s-0"
63
- })(["margin:", "px 0;border-radius:", "px;", ";", ""], props => props.theme.space.base * 2, props => props.borderRadius, colorStyles, props => retrieveComponentStyles(PROGRESS_BACKGROUND_COMPONENT_ID, props));
62
+ })(["margin:", "px 0;border-radius:", "px;", ";", ""], props => props.theme.space.base * 2, props => sizeToBorderRadius(props.$size, props.theme), colorStyles, props => retrieveComponentStyles(PROGRESS_BACKGROUND_COMPONENT_ID, props));
64
63
  const PROGESS_INDICATOR_COMPONENT_ID = 'loaders.progress_indicator';
65
- const StyledProgressIndicator = styled.div.attrs(props => ({
64
+ const StyledProgressIndicator = styled.div.attrs({
66
65
  'data-garden-id': PROGESS_INDICATOR_COMPONENT_ID,
67
- 'data-garden-version': '9.1.1',
68
- height: props.height || sizeToHeight(props.size, props.theme),
69
- borderRadius: props.borderRadius || sizeToBorderRadius(props.size, props.theme)
70
- })).withConfig({
66
+ 'data-garden-version': '9.2.0'
67
+ }).withConfig({
71
68
  displayName: "StyledProgress__StyledProgressIndicator",
72
69
  componentId: "sc-2g8w4s-1"
73
- })(["transition:width 0.1s ease-in-out;border-radius:", "px;background:currentcolor;width:", "%;height:", "px;", ""], props => props.borderRadius, props => props.value, props => props.height, props => retrieveComponentStyles(PROGESS_INDICATOR_COMPONENT_ID, props));
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), props => retrieveComponentStyles(PROGESS_INDICATOR_COMPONENT_ID, props));
74
71
 
75
72
  export { StyledProgressBackground, StyledProgressIndicator };
@@ -10,28 +10,26 @@ import { retrieveComponentStyles, getColor } from '@zendeskgarden/react-theming'
10
10
  const colorStyles = _ref => {
11
11
  let {
12
12
  theme,
13
- color = 'inherit'
13
+ $color = 'inherit'
14
14
  } = _ref;
15
- const options = color.includes('.') ? {
16
- variable: color,
15
+ const options = $color.includes('.') ? {
16
+ variable: $color,
17
17
  theme
18
18
  } : {
19
- hue: color,
19
+ hue: $color,
20
20
  theme
21
21
  };
22
22
  return css(["color:", ";"], getColor(options));
23
23
  };
24
24
  const StyledSVG = styled.svg.attrs(props => ({
25
- 'data-garden-version': '9.1.1',
25
+ 'data-garden-version': '9.2.0',
26
26
  xmlns: 'http://www.w3.org/2000/svg',
27
- width: props.width,
28
- height: props.height,
29
27
  focusable: 'false',
30
- viewBox: `0 0 ${props.width} ${props.height}`,
28
+ viewBox: `0 0 ${props.$width} ${props.$height}`,
31
29
  role: 'img'
32
30
  })).withConfig({
33
31
  displayName: "StyledSVG",
34
32
  componentId: "sc-1xtc3kx-0"
35
- })(["width:", ";height:", ";font-size:", ";", ";", ";"], props => props.containerWidth || '1em', props => props.containerHeight || '0.9em', props => props.fontSize || 'inherit', colorStyles, props => retrieveComponentStyles(props.dataGardenId, props));
33
+ })(["width:", ";height:", ";font-size:", ";", ";", ";"], props => props.$containerWidth || '1em', props => props.$containerHeight || '0.9em', props => props.$fontSize || 'inherit', colorStyles, props => retrieveComponentStyles(props['data-garden-id'], props));
36
34
 
37
35
  export { StyledSVG };
@@ -52,7 +52,7 @@ const gradientStyles = props => {
52
52
  };
53
53
  const StyledSkeleton = styled.div.attrs({
54
54
  'data-garden-id': COMPONENT_ID,
55
- 'data-garden-version': '9.1.1'
55
+ 'data-garden-version': '9.2.0'
56
56
  }).withConfig({
57
57
  displayName: "StyledSkeleton",
58
58
  componentId: "sc-1raozze-0"
@@ -13,8 +13,8 @@ const StyledSpinnerCircle = styled.circle.attrs(props => ({
13
13
  fill: 'none',
14
14
  stroke: 'currentColor',
15
15
  strokeLinecap: 'round',
16
- strokeWidth: props.strokeWidthValue,
17
- strokeDasharray: `${props.dasharrayValue} 250`,
16
+ strokeWidth: props.$strokeWidthValue,
17
+ strokeDasharray: `${props.$dasharrayValue} 250`,
18
18
  transform: props.transform
19
19
  })).withConfig({
20
20
  displayName: "StyledSpinnerCircle",
package/dist/index.cjs.js CHANGED
@@ -30,7 +30,7 @@ const StyledDotsCircle = styled__default.default.circle.attrs({
30
30
  componentId: "sc-1ltah7e-0"
31
31
  })([""]);
32
32
  const animationStyles$1 = (animationName, props) => {
33
- return styled.css(["animation:", " ", "ms linear infinite;"], animationName, props.duration);
33
+ return styled.css(["animation:", " ", "ms linear infinite;"], animationName, props.$duration);
34
34
  };
35
35
  const StyledDotsCircleOne = styled__default.default(StyledDotsCircle).attrs({
36
36
  cx: 9
@@ -54,15 +54,15 @@ 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.1.1',
57
+ 'data-garden-version': '9.2.0',
58
58
  role: 'progressbar'
59
59
  }).withConfig({
60
60
  displayName: "StyledLoadingPlaceholder",
61
61
  componentId: "sc-x3bwsx-0"
62
62
  })(["display:inline-block;width:", ";height:", ";font-size:", ";", ""], props => props.width || '1em', props => props.height || '0.9em', props => props.fontSize, props => reactTheming.retrieveComponentStyles(COMPONENT_ID$5, props));
63
63
 
64
- const sizeToHeight = (size, theme) => {
65
- switch (size) {
64
+ const sizeToHeight = ($size, theme) => {
65
+ switch ($size) {
66
66
  case 'small':
67
67
  return theme.space.base / 2;
68
68
  case 'medium':
@@ -71,12 +71,12 @@ const sizeToHeight = (size, theme) => {
71
71
  return theme.space.base * 3;
72
72
  }
73
73
  };
74
- const sizeToBorderRadius = (size, theme) => sizeToHeight(size, theme) / 2;
74
+ const sizeToBorderRadius = ($size, theme) => sizeToHeight($size, theme) / 2;
75
75
  const PROGRESS_BACKGROUND_COMPONENT_ID = 'loaders.progress_background';
76
76
  const colorStyles$2 = _ref => {
77
77
  let {
78
78
  theme,
79
- color
79
+ $color
80
80
  } = _ref;
81
81
  const backgroundColor = reactTheming.getColor({
82
82
  theme,
@@ -90,12 +90,12 @@ const colorStyles$2 = _ref => {
90
90
  }
91
91
  });
92
92
  let options;
93
- if (color) {
94
- options = color.includes('.') ? {
95
- variable: color,
93
+ if ($color) {
94
+ options = $color.includes('.') ? {
95
+ variable: $color,
96
96
  theme
97
97
  } : {
98
- hue: color,
98
+ hue: $color,
99
99
  theme
100
100
  };
101
101
  } else {
@@ -107,24 +107,21 @@ const colorStyles$2 = _ref => {
107
107
  const foregroundColor = reactTheming.getColor(options);
108
108
  return styled.css(["background-color:", ";color:", ";"], backgroundColor, foregroundColor);
109
109
  };
110
- const StyledProgressBackground = styled__default.default.div.attrs(props => ({
110
+ const StyledProgressBackground = styled__default.default.div.attrs({
111
111
  'data-garden-id': PROGRESS_BACKGROUND_COMPONENT_ID,
112
- 'data-garden-version': '9.1.1',
113
- borderRadius: props.borderRadius || sizeToBorderRadius(props.size, props.theme)
114
- })).withConfig({
112
+ 'data-garden-version': '9.2.0'
113
+ }).withConfig({
115
114
  displayName: "StyledProgress__StyledProgressBackground",
116
115
  componentId: "sc-2g8w4s-0"
117
- })(["margin:", "px 0;border-radius:", "px;", ";", ""], props => props.theme.space.base * 2, props => props.borderRadius, colorStyles$2, props => reactTheming.retrieveComponentStyles(PROGRESS_BACKGROUND_COMPONENT_ID, props));
116
+ })(["margin:", "px 0;border-radius:", "px;", ";", ""], props => props.theme.space.base * 2, props => sizeToBorderRadius(props.$size, props.theme), colorStyles$2, props => reactTheming.retrieveComponentStyles(PROGRESS_BACKGROUND_COMPONENT_ID, props));
118
117
  const PROGESS_INDICATOR_COMPONENT_ID = 'loaders.progress_indicator';
119
- const StyledProgressIndicator = styled__default.default.div.attrs(props => ({
118
+ const StyledProgressIndicator = styled__default.default.div.attrs({
120
119
  'data-garden-id': PROGESS_INDICATOR_COMPONENT_ID,
121
- 'data-garden-version': '9.1.1',
122
- height: props.height || sizeToHeight(props.size, props.theme),
123
- borderRadius: props.borderRadius || sizeToBorderRadius(props.size, props.theme)
124
- })).withConfig({
120
+ 'data-garden-version': '9.2.0'
121
+ }).withConfig({
125
122
  displayName: "StyledProgress__StyledProgressIndicator",
126
123
  componentId: "sc-2g8w4s-1"
127
- })(["transition:width 0.1s ease-in-out;border-radius:", "px;background:currentcolor;width:", "%;height:", "px;", ""], props => props.borderRadius, props => props.value, props => props.height, props => reactTheming.retrieveComponentStyles(PROGESS_INDICATOR_COMPONENT_ID, props));
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), props => reactTheming.retrieveComponentStyles(PROGESS_INDICATOR_COMPONENT_ID, props));
128
125
 
129
126
  const COMPONENT_ID$4 = 'loaders.skeleton';
130
127
  const fadeInAnimation = styled.keyframes(["0%,60%{opacity:0;}100%{opacity:1;}"]);
@@ -171,7 +168,7 @@ const gradientStyles = props => {
171
168
  };
172
169
  const StyledSkeleton = styled__default.default.div.attrs({
173
170
  'data-garden-id': COMPONENT_ID$4,
174
- 'data-garden-version': '9.1.1'
171
+ 'data-garden-version': '9.2.0'
175
172
  }).withConfig({
176
173
  displayName: "StyledSkeleton",
177
174
  componentId: "sc-1raozze-0"
@@ -184,8 +181,8 @@ const StyledSpinnerCircle = styled__default.default.circle.attrs(props => ({
184
181
  fill: 'none',
185
182
  stroke: 'currentColor',
186
183
  strokeLinecap: 'round',
187
- strokeWidth: props.strokeWidthValue,
188
- strokeDasharray: `${props.dasharrayValue} 250`,
184
+ strokeWidth: props.$strokeWidthValue,
185
+ strokeDasharray: `${props.$dasharrayValue} 250`,
189
186
  transform: props.transform
190
187
  })).withConfig({
191
188
  displayName: "StyledSpinnerCircle",
@@ -195,41 +192,39 @@ const StyledSpinnerCircle = styled__default.default.circle.attrs(props => ({
195
192
  const colorStyles$1 = _ref => {
196
193
  let {
197
194
  theme,
198
- color = 'inherit'
195
+ $color = 'inherit'
199
196
  } = _ref;
200
- const options = color.includes('.') ? {
201
- variable: color,
197
+ const options = $color.includes('.') ? {
198
+ variable: $color,
202
199
  theme
203
200
  } : {
204
- hue: color,
201
+ hue: $color,
205
202
  theme
206
203
  };
207
204
  return styled.css(["color:", ";"], reactTheming.getColor(options));
208
205
  };
209
206
  const StyledSVG = styled__default.default.svg.attrs(props => ({
210
- 'data-garden-version': '9.1.1',
207
+ 'data-garden-version': '9.2.0',
211
208
  xmlns: 'http://www.w3.org/2000/svg',
212
- width: props.width,
213
- height: props.height,
214
209
  focusable: 'false',
215
- viewBox: `0 0 ${props.width} ${props.height}`,
210
+ viewBox: `0 0 ${props.$width} ${props.$height}`,
216
211
  role: 'img'
217
212
  })).withConfig({
218
213
  displayName: "StyledSVG",
219
214
  componentId: "sc-1xtc3kx-0"
220
- })(["width:", ";height:", ";font-size:", ";", ";", ";"], props => props.containerWidth || '1em', props => props.containerHeight || '0.9em', props => props.fontSize || 'inherit', colorStyles$1, props => reactTheming.retrieveComponentStyles(props.dataGardenId, props));
215
+ })(["width:", ";height:", ";font-size:", ";", ";", ";"], props => props.$containerWidth || '1em', props => props.$containerHeight || '0.9em', props => props.$fontSize || 'inherit', colorStyles$1, props => reactTheming.retrieveComponentStyles(props['data-garden-id'], props));
221
216
 
222
217
  const COMPONENT_ID$3 = 'loaders.inline';
223
218
  const colorStyles = _ref => {
224
219
  let {
225
220
  theme,
226
- color
221
+ $color
227
222
  } = _ref;
228
- const options = color.includes('.') ? {
229
- variable: color,
223
+ const options = $color.includes('.') ? {
224
+ variable: $color,
230
225
  theme
231
226
  } : {
232
- hue: color,
227
+ hue: $color,
233
228
  theme
234
229
  };
235
230
  return styled.css(["color:", ";"], reactTheming.getColor(options));
@@ -250,10 +245,10 @@ const StyledCircle = styled__default.default.circle.attrs({
250
245
  })([""]);
251
246
  const StyledInline = styled__default.default.svg.attrs(props => ({
252
247
  'data-garden-id': COMPONENT_ID$3,
253
- 'data-garden-version': '9.1.1',
248
+ 'data-garden-version': '9.2.0',
254
249
  viewBox: '0 0 16 4',
255
- width: props.size,
256
- height: props.size * 0.25
250
+ width: props.$size,
251
+ height: props.$size * 0.25
257
252
  })).withConfig({
258
253
  displayName: "StyledInline",
259
254
  componentId: "sc-fxsb9l-1"
@@ -299,22 +294,22 @@ const Dots = React.forwardRef((_ref, ref) => {
299
294
  }, "\xA0");
300
295
  }
301
296
  return React__default.default.createElement(StyledSVG, Object.assign({
297
+ "data-garden-id": COMPONENT_ID$2,
302
298
  ref: ref,
303
- fontSize: size,
304
- color: color,
305
- width: "80",
306
- height: "72",
307
- dataGardenId: COMPONENT_ID$2
299
+ $fontSize: size,
300
+ $color: color,
301
+ $width: "80",
302
+ $height: "72"
308
303
  }, other), React__default.default.createElement("g", {
309
304
  fill: "currentColor"
310
305
  }, React__default.default.createElement(StyledDotsCircleOne, {
311
- duration: duration,
306
+ $duration: duration,
312
307
  ref: dotOne
313
308
  }), React__default.default.createElement(StyledDotsCircleTwo, {
314
- duration: duration,
309
+ $duration: duration,
315
310
  ref: dotTwo
316
311
  }), React__default.default.createElement(StyledDotsCircleThree, {
317
- duration: duration,
312
+ $duration: duration,
318
313
  ref: dotThree
319
314
  })));
320
315
  });
@@ -337,6 +332,7 @@ const SIZE = ['small', 'medium', 'large'];
337
332
  const COMPONENT_ID$1 = 'loaders.progress';
338
333
  const Progress = React__default.default.forwardRef((_ref, ref) => {
339
334
  let {
335
+ color,
340
336
  value,
341
337
  size,
342
338
  'aria-label': label,
@@ -349,17 +345,18 @@ const Progress = React__default.default.forwardRef((_ref, ref) => {
349
345
  return (
350
346
  React__default.default.createElement(StyledProgressBackground, Object.assign({
351
347
  "data-garden-id": COMPONENT_ID$1,
352
- "data-garden-version": '9.1.1',
348
+ "data-garden-version": '9.2.0',
353
349
  "aria-valuemax": 100,
354
350
  "aria-valuemin": 0,
355
351
  "aria-valuenow": percentage,
356
352
  role: "progressbar",
357
- size: size,
353
+ $size: size,
354
+ $color: color,
358
355
  ref: ref,
359
356
  "aria-label": ariaLabel
360
357
  }, other), React__default.default.createElement(StyledProgressIndicator, {
361
- value: percentage,
362
- size: size
358
+ $value: percentage,
359
+ $size: size
363
360
  }))
364
361
  );
365
362
  });
@@ -515,17 +512,17 @@ const Spinner = React.forwardRef((_ref, ref) => {
515
512
  }, "\xA0");
516
513
  }
517
514
  return React__default.default.createElement(StyledSVG, Object.assign({
515
+ $color: color,
516
+ $containerHeight: "1em",
517
+ $containerWidth: "1em",
518
+ $fontSize: size,
519
+ "data-garden-id": COMPONENT_ID,
520
+ $height: HEIGHT,
518
521
  ref: ref,
519
- fontSize: size,
520
- color: color,
521
- width: WIDTH,
522
- height: HEIGHT,
523
- dataGardenId: COMPONENT_ID,
524
- containerHeight: "1em",
525
- containerWidth: "1em"
522
+ $width: WIDTH
526
523
  }, other), React__default.default.createElement(StyledSpinnerCircle, {
527
- dasharrayValue: dasharrayValue,
528
- strokeWidthValue: strokeWidthValue,
524
+ $dasharrayValue: dasharrayValue,
525
+ $strokeWidthValue: strokeWidthValue,
529
526
  transform: `rotate(${rotationValue}, ${WIDTH / 2}, ${HEIGHT / 2})`
530
527
  }));
531
528
  });
@@ -553,8 +550,8 @@ const Inline = React.forwardRef((_ref, ref) => {
553
550
  return (
554
551
  React__default.default.createElement(StyledInline, Object.assign({
555
552
  ref: ref,
556
- size: size,
557
- color: color,
553
+ $size: size,
554
+ $color: color,
558
555
  "aria-label": ariaLabel,
559
556
  role: "img"
560
557
  }, other), React__default.default.createElement(StyledCircle, {
@@ -5,7 +5,7 @@
5
5
  * found at http://www.apache.org/licenses/LICENSE-2.0.
6
6
  */
7
7
  interface IStyledDotProps {
8
- duration: number;
8
+ $duration: number;
9
9
  }
10
10
  export declare const StyledDotsCircleOne: import("styled-components").StyledComponent<"circle", import("styled-components").DefaultTheme, {
11
11
  cy: 36;
@@ -6,8 +6,8 @@
6
6
  */
7
7
  import { DefaultTheme } from 'styled-components';
8
8
  interface IStyledInlineProps {
9
- size: number;
10
- color: string;
9
+ $size: number;
10
+ $color: string;
11
11
  }
12
12
  export declare const StyledCircle: import("styled-components").StyledComponent<"circle", DefaultTheme, {
13
13
  fill: "currentColor";
@@ -7,16 +7,13 @@
7
7
  import { DefaultTheme } from 'styled-components';
8
8
  import { Size } from '../types';
9
9
  interface IStyledProgressBackgroundProps {
10
- size: Size;
11
- borderRadius?: number;
12
- color?: string;
10
+ $size: Size;
11
+ $color?: string;
13
12
  }
14
13
  export declare const StyledProgressBackground: import("styled-components").StyledComponent<"div", DefaultTheme, IStyledProgressBackgroundProps, never>;
15
14
  interface IStyledProgressIndicatorProps {
16
- size: Size;
17
- borderRadius?: number;
18
- value: number;
19
- height?: number;
15
+ $size: Size;
16
+ $value: number;
20
17
  }
21
18
  export declare const StyledProgressIndicator: import("styled-components").StyledComponent<"div", DefaultTheme, IStyledProgressIndicatorProps, never>;
22
19
  export {};
@@ -6,13 +6,13 @@
6
6
  */
7
7
  import { DefaultTheme } from 'styled-components';
8
8
  interface IStyledSVGProps {
9
- dataGardenId: string;
10
- color?: string;
11
- fontSize?: string | number;
12
- width: number | string;
13
- height: number | string;
14
- containerWidth?: string;
15
- containerHeight?: string;
9
+ 'data-garden-id': string;
10
+ $color?: string;
11
+ $fontSize?: string | number;
12
+ $width: number | string;
13
+ $height: number | string;
14
+ $containerWidth?: string;
15
+ $containerHeight?: string;
16
16
  }
17
17
  export declare const StyledSVG: import("styled-components").StyledComponent<"svg", DefaultTheme, IStyledSVGProps, never>;
18
18
  export {};
@@ -5,8 +5,8 @@
5
5
  * found at http://www.apache.org/licenses/LICENSE-2.0.
6
6
  */
7
7
  interface IStyledSpinnerCircleProps {
8
- dasharrayValue: number;
9
- strokeWidthValue: number;
8
+ $dasharrayValue: number;
9
+ $strokeWidthValue: number;
10
10
  transform: string;
11
11
  }
12
12
  export declare const StyledSpinnerCircle: import("styled-components").StyledComponent<"circle", import("styled-components").DefaultTheme, IStyledSpinnerCircleProps, never>;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@zendeskgarden/react-loaders",
3
- "version": "9.1.1",
3
+ "version": "9.2.0",
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"
33
33
  },
34
34
  "devDependencies": {
35
- "@zendeskgarden/react-theming": "^9.1.1"
35
+ "@zendeskgarden/react-theming": "^9.2.0"
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": "21eaf7b57f27f1a846ed332f1b8e655d6bc0a13b"
47
+ "gitHead": "23a86c9a1e830685e277544c089b44614c2261ac"
48
48
  }