@zendeskgarden/react-loaders 9.0.0-next.12 → 9.0.0-next.14

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.
@@ -31,7 +31,7 @@ const Progress = React.forwardRef((_ref, ref) => {
31
31
  return (
32
32
  React.createElement(StyledProgressBackground, Object.assign({
33
33
  "data-garden-id": COMPONENT_ID,
34
- "data-garden-version": '9.0.0-next.12',
34
+ "data-garden-version": '9.0.0-next.14',
35
35
  "aria-valuemax": 100,
36
36
  "aria-valuemin": 0,
37
37
  "aria-valuenow": percentage,
@@ -23,9 +23,9 @@ const Skeleton = forwardRef((_ref, ref) => {
23
23
  } = _ref;
24
24
  return React.createElement(StyledSkeleton, Object.assign({
25
25
  ref: ref,
26
- isLight: isLight,
27
- customWidth: width,
28
- customHeight: height
26
+ $isLight: isLight,
27
+ $width: width,
28
+ $height: height
29
29
  }, other), "\xA0");
30
30
  });
31
31
  Skeleton.displayName = 'Skeleton';
@@ -8,7 +8,12 @@ import styled, { keyframes } from 'styled-components';
8
8
  import { DEFAULT_THEME, retrieveComponentStyles } from '@zendeskgarden/react-theming';
9
9
 
10
10
  const COMPONENT_ID = 'loaders.inline';
11
- const PULSE_ANIMATION = keyframes(["0%,100%{opacity:.2;}50%{opacity:.8;}"]);
11
+ const retrieveAnimation = _ref => {
12
+ let {
13
+ theme
14
+ } = _ref;
15
+ return keyframes(["0%,100%{opacity:", ";}50%{opacity:", ";}"], theme.opacity[200], theme.opacity[600]);
16
+ };
12
17
  const StyledCircle = styled.circle.attrs({
13
18
  fill: 'currentColor',
14
19
  cy: 2,
@@ -22,14 +27,14 @@ StyledCircle.defaultProps = {
22
27
  };
23
28
  const StyledInline = styled.svg.attrs(props => ({
24
29
  'data-garden-id': COMPONENT_ID,
25
- 'data-garden-version': '9.0.0-next.12',
30
+ 'data-garden-version': '9.0.0-next.14',
26
31
  viewBox: '0 0 16 4',
27
32
  width: props.size,
28
33
  height: props.size * 0.25
29
34
  })).withConfig({
30
35
  displayName: "StyledInline",
31
36
  componentId: "sc-fxsb9l-1"
32
- })(["color:", ";", "{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:", ";}}", ""], props => props.color, StyledCircle, PULSE_ANIMATION, props => props.theme.rtl ? 'unset' : '0.4s', PULSE_ANIMATION, PULSE_ANIMATION, props => props.theme.rtl ? '0.4s' : 'unset', props => retrieveComponentStyles(COMPONENT_ID, props));
37
+ })(["color:", ";", "{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:", ";}}", ""], props => props.color, StyledCircle, retrieveAnimation, props => props.theme.rtl ? 'unset' : '0.4s', retrieveAnimation, retrieveAnimation, props => props.theme.rtl ? '0.4s' : 'unset', props => retrieveComponentStyles(COMPONENT_ID, props));
33
38
  StyledInline.defaultProps = {
34
39
  theme: DEFAULT_THEME
35
40
  };
@@ -10,7 +10,7 @@ import { retrieveComponentStyles, DEFAULT_THEME } from '@zendeskgarden/react-the
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.0.0-next.12',
13
+ 'data-garden-version': '9.0.0-next.14',
14
14
  role: 'progressbar'
15
15
  }).withConfig({
16
16
  displayName: "StyledLoadingPlaceholder",
@@ -4,8 +4,8 @@
4
4
  * Use of this source code is governed under the Apache License, Version 2.0
5
5
  * found at http://www.apache.org/licenses/LICENSE-2.0.
6
6
  */
7
- import styled from 'styled-components';
8
- import { getColorV8, retrieveComponentStyles, DEFAULT_THEME } from '@zendeskgarden/react-theming';
7
+ import styled, { css } from 'styled-components';
8
+ import { retrieveComponentStyles, DEFAULT_THEME, getColor } from '@zendeskgarden/react-theming';
9
9
 
10
10
  const sizeToHeight = (size, theme) => {
11
11
  switch (size) {
@@ -19,21 +19,43 @@ const sizeToHeight = (size, theme) => {
19
19
  };
20
20
  const sizeToBorderRadius = (size, theme) => sizeToHeight(size, theme) / 2;
21
21
  const PROGRESS_BACKGROUND_COMPONENT_ID = 'loaders.progress_background';
22
+ const colorStyles = _ref => {
23
+ let {
24
+ theme,
25
+ color
26
+ } = _ref;
27
+ const backgroundColor = getColor({
28
+ theme,
29
+ hue: 'neutralHue',
30
+ transparency: theme.opacity[200],
31
+ light: {
32
+ shade: 700
33
+ },
34
+ dark: {
35
+ shade: 500
36
+ }
37
+ });
38
+ const foregroundColor = color || getColor({
39
+ theme,
40
+ variable: 'border.successEmphasis'
41
+ });
42
+ return css(["background-color:", ";color:", ";"], backgroundColor, foregroundColor);
43
+ };
22
44
  const StyledProgressBackground = styled.div.attrs(props => ({
23
45
  'data-garden-id': PROGRESS_BACKGROUND_COMPONENT_ID,
24
- 'data-garden-version': '9.0.0-next.12',
46
+ 'data-garden-version': '9.0.0-next.14',
25
47
  borderRadius: props.borderRadius || sizeToBorderRadius(props.size, props.theme)
26
48
  })).withConfig({
27
49
  displayName: "StyledProgress__StyledProgressBackground",
28
50
  componentId: "sc-2g8w4s-0"
29
- })(["margin:", "px 0;border-radius:", "px;background-color:", ";color:", ";", ""], props => props.theme.space.base * 2, props => props.borderRadius, props => getColorV8('neutralHue', 200, props.theme), props => props.color || getColorV8('successHue', 600, props.theme), props => retrieveComponentStyles(PROGRESS_BACKGROUND_COMPONENT_ID, props));
51
+ })(["margin:", "px 0;border-radius:", "px;", ";", ""], props => props.theme.space.base * 2, props => props.borderRadius, colorStyles, props => retrieveComponentStyles(PROGRESS_BACKGROUND_COMPONENT_ID, props));
30
52
  StyledProgressBackground.defaultProps = {
31
53
  theme: DEFAULT_THEME
32
54
  };
33
55
  const PROGESS_INDICATOR_COMPONENT_ID = 'loaders.progress_indicator';
34
56
  const StyledProgressIndicator = styled.div.attrs(props => ({
35
57
  'data-garden-id': PROGESS_INDICATOR_COMPONENT_ID,
36
- 'data-garden-version': '9.0.0-next.12',
58
+ 'data-garden-version': '9.0.0-next.14',
37
59
  height: props.height || sizeToHeight(props.size, props.theme),
38
60
  borderRadius: props.borderRadius || sizeToBorderRadius(props.size, props.theme)
39
61
  })).withConfig({
@@ -8,7 +8,7 @@ import styled from 'styled-components';
8
8
  import { retrieveComponentStyles, DEFAULT_THEME } from '@zendeskgarden/react-theming';
9
9
 
10
10
  const StyledSVG = styled.svg.attrs(props => ({
11
- 'data-garden-version': '9.0.0-next.12',
11
+ 'data-garden-version': '9.0.0-next.14',
12
12
  xmlns: 'http://www.w3.org/2000/svg',
13
13
  width: props.width,
14
14
  height: props.height,
@@ -5,24 +5,40 @@
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 { rgba } from 'polished';
9
- import { getLineHeight, retrieveComponentStyles, DEFAULT_THEME, getColorV8 } from '@zendeskgarden/react-theming';
8
+ import { getLineHeight, retrieveComponentStyles, DEFAULT_THEME, getColor } from '@zendeskgarden/react-theming';
10
9
 
11
10
  const COMPONENT_ID = 'loaders.skeleton';
12
11
  const fadeInAnimation = keyframes(["0%,60%{opacity:0;}100%{opacity:1;}"]);
13
12
  const skeletonAnimation = keyframes(["0%{transform:translateX(-100%);}100%{transform:translateX(100%);}"]);
14
13
  const skeletonRtlAnimation = keyframes(["0%{transform:translateX(100%);}100%{transform:translateX(-100%)}"]);
15
- const retrieveSkeletonBackgroundColor = _ref => {
14
+ const getBackgroundColor = _ref => {
16
15
  let {
17
16
  theme,
18
- isLight
17
+ $isLight
19
18
  } = _ref;
20
- if (isLight) {
21
- return css(["background-color:", ";"], rgba(getColorV8('background', 600 , theme), 0.2));
19
+ let backgroundColor;
20
+ if ($isLight) {
21
+ backgroundColor = getColor({
22
+ theme,
23
+ hue: 'white',
24
+ transparency: theme.opacity[200]
25
+ });
26
+ } else {
27
+ backgroundColor = getColor({
28
+ theme,
29
+ hue: 'neutralHue',
30
+ transparency: theme.opacity[200],
31
+ light: {
32
+ shade: 700
33
+ },
34
+ dark: {
35
+ shade: 500
36
+ }
37
+ });
22
38
  }
23
- return css(["background-color:", ";"], getColorV8('neutralHue', 800, theme, 0.1));
39
+ return backgroundColor;
24
40
  };
25
- const retrieveSkeletonAnimation = _ref2 => {
41
+ const animationStyles = _ref2 => {
26
42
  let {
27
43
  theme
28
44
  } = _ref2;
@@ -31,20 +47,16 @@ const retrieveSkeletonAnimation = _ref2 => {
31
47
  }
32
48
  return css(["animation:", " 1.5s ease-in-out 300ms infinite;"], skeletonAnimation);
33
49
  };
34
- const retrieveSkeletonGradient = _ref3 => {
35
- let {
36
- theme,
37
- isLight
38
- } = _ref3;
39
- return css(["background-image:linear-gradient( ", ",transparent,", ",transparent );"], theme.rtl ? '-45deg' : '45deg', isLight ? getColorV8('chromeHue', 700, theme, 0.4) : rgba(getColorV8('background', 600 , theme), 0.6));
50
+ const gradientStyles = props => {
51
+ return css(["background-image:linear-gradient( ", ",transparent,", ",transparent );"], props.theme.rtl ? '-45deg' : '45deg', getBackgroundColor);
40
52
  };
41
53
  const StyledSkeleton = styled.div.attrs({
42
54
  'data-garden-id': COMPONENT_ID,
43
- 'data-garden-version': '9.0.0-next.12'
55
+ 'data-garden-version': '9.0.0-next.14'
44
56
  }).withConfig({
45
57
  displayName: "StyledSkeleton",
46
58
  componentId: "sc-1raozze-0"
47
- })(["display:inline-block;position:relative;animation:", " 750ms linear;border-radius:", ";width:", ";height:", ";overflow:hidden;line-height:", ";", " &::before{position:absolute;top:0;width:1000px;height:100%;content:'';", " ", "}", ";"], fadeInAnimation, props => props.theme.borderRadii.md, props => props.customWidth, props => props.customHeight, props => getLineHeight(props.theme.fontSizes.sm, props.theme.space.base * 5), retrieveSkeletonBackgroundColor, retrieveSkeletonAnimation, retrieveSkeletonGradient, props => retrieveComponentStyles(COMPONENT_ID, props));
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, props => retrieveComponentStyles(COMPONENT_ID, props));
48
60
  StyledSkeleton.defaultProps = {
49
61
  theme: DEFAULT_THEME
50
62
  };
package/dist/index.cjs.js CHANGED
@@ -11,7 +11,6 @@ var PropTypes = require('prop-types');
11
11
  var styled = require('styled-components');
12
12
  var containerSchedule = require('@zendeskgarden/container-schedule');
13
13
  var reactTheming = require('@zendeskgarden/react-theming');
14
- var polished = require('polished');
15
14
 
16
15
  function _interopDefault (e) { return e && e.__esModule ? e : { default: e }; }
17
16
 
@@ -33,7 +32,7 @@ const StyledDotsCircle = styled__default.default.circle.attrs({
33
32
  StyledDotsCircle.defaultProps = {
34
33
  theme: reactTheming.DEFAULT_THEME
35
34
  };
36
- const animationStyles = (animationName, props) => {
35
+ const animationStyles$1 = (animationName, props) => {
37
36
  return styled.css(["animation:", " ", "ms linear infinite;"], animationName, props.duration);
38
37
  };
39
38
  const StyledDotsCircleOne = styled__default.default(StyledDotsCircle).attrs({
@@ -41,7 +40,7 @@ const StyledDotsCircleOne = styled__default.default(StyledDotsCircle).attrs({
41
40
  }).withConfig({
42
41
  displayName: "StyledDots__StyledDotsCircleOne",
43
42
  componentId: "sc-1ltah7e-1"
44
- })(["", ";"], props => animationStyles(dotOneKeyframes, props));
43
+ })(["", ";"], props => animationStyles$1(dotOneKeyframes, props));
45
44
  StyledDotsCircleOne.defaultProps = {
46
45
  theme: reactTheming.DEFAULT_THEME
47
46
  };
@@ -50,7 +49,7 @@ const StyledDotsCircleTwo = styled__default.default(StyledDotsCircle).attrs(() =
50
49
  })).withConfig({
51
50
  displayName: "StyledDots__StyledDotsCircleTwo",
52
51
  componentId: "sc-1ltah7e-2"
53
- })(["", ";"], props => animationStyles(dotTwoKeyframes, props));
52
+ })(["", ";"], props => animationStyles$1(dotTwoKeyframes, props));
54
53
  StyledDotsCircleTwo.defaultProps = {
55
54
  theme: reactTheming.DEFAULT_THEME
56
55
  };
@@ -59,7 +58,7 @@ const StyledDotsCircleThree = styled__default.default(StyledDotsCircle).attrs(()
59
58
  })).withConfig({
60
59
  displayName: "StyledDots__StyledDotsCircleThree",
61
60
  componentId: "sc-1ltah7e-3"
62
- })(["", ";"], props => animationStyles(dotThreeKeyframes, props));
61
+ })(["", ";"], props => animationStyles$1(dotThreeKeyframes, props));
63
62
  StyledDotsCircleThree.defaultProps = {
64
63
  theme: reactTheming.DEFAULT_THEME
65
64
  };
@@ -67,7 +66,7 @@ StyledDotsCircleThree.defaultProps = {
67
66
  const COMPONENT_ID$5 = 'loaders.loading_placeholder';
68
67
  const StyledLoadingPlaceholder = styled__default.default.div.attrs({
69
68
  'data-garden-id': COMPONENT_ID$5,
70
- 'data-garden-version': '9.0.0-next.12',
69
+ 'data-garden-version': '9.0.0-next.14',
71
70
  role: 'progressbar'
72
71
  }).withConfig({
73
72
  displayName: "StyledLoadingPlaceholder",
@@ -89,21 +88,43 @@ const sizeToHeight = (size, theme) => {
89
88
  };
90
89
  const sizeToBorderRadius = (size, theme) => sizeToHeight(size, theme) / 2;
91
90
  const PROGRESS_BACKGROUND_COMPONENT_ID = 'loaders.progress_background';
91
+ const colorStyles = _ref => {
92
+ let {
93
+ theme,
94
+ color
95
+ } = _ref;
96
+ const backgroundColor = reactTheming.getColor({
97
+ theme,
98
+ hue: 'neutralHue',
99
+ transparency: theme.opacity[200],
100
+ light: {
101
+ shade: 700
102
+ },
103
+ dark: {
104
+ shade: 500
105
+ }
106
+ });
107
+ const foregroundColor = color || reactTheming.getColor({
108
+ theme,
109
+ variable: 'border.successEmphasis'
110
+ });
111
+ return styled.css(["background-color:", ";color:", ";"], backgroundColor, foregroundColor);
112
+ };
92
113
  const StyledProgressBackground = styled__default.default.div.attrs(props => ({
93
114
  'data-garden-id': PROGRESS_BACKGROUND_COMPONENT_ID,
94
- 'data-garden-version': '9.0.0-next.12',
115
+ 'data-garden-version': '9.0.0-next.14',
95
116
  borderRadius: props.borderRadius || sizeToBorderRadius(props.size, props.theme)
96
117
  })).withConfig({
97
118
  displayName: "StyledProgress__StyledProgressBackground",
98
119
  componentId: "sc-2g8w4s-0"
99
- })(["margin:", "px 0;border-radius:", "px;background-color:", ";color:", ";", ""], props => props.theme.space.base * 2, props => props.borderRadius, props => reactTheming.getColorV8('neutralHue', 200, props.theme), props => props.color || reactTheming.getColorV8('successHue', 600, props.theme), props => reactTheming.retrieveComponentStyles(PROGRESS_BACKGROUND_COMPONENT_ID, props));
120
+ })(["margin:", "px 0;border-radius:", "px;", ";", ""], props => props.theme.space.base * 2, props => props.borderRadius, colorStyles, props => reactTheming.retrieveComponentStyles(PROGRESS_BACKGROUND_COMPONENT_ID, props));
100
121
  StyledProgressBackground.defaultProps = {
101
122
  theme: reactTheming.DEFAULT_THEME
102
123
  };
103
124
  const PROGESS_INDICATOR_COMPONENT_ID = 'loaders.progress_indicator';
104
125
  const StyledProgressIndicator = styled__default.default.div.attrs(props => ({
105
126
  'data-garden-id': PROGESS_INDICATOR_COMPONENT_ID,
106
- 'data-garden-version': '9.0.0-next.12',
127
+ 'data-garden-version': '9.0.0-next.14',
107
128
  height: props.height || sizeToHeight(props.size, props.theme),
108
129
  borderRadius: props.borderRadius || sizeToBorderRadius(props.size, props.theme)
109
130
  })).withConfig({
@@ -118,17 +139,34 @@ const COMPONENT_ID$4 = 'loaders.skeleton';
118
139
  const fadeInAnimation = styled.keyframes(["0%,60%{opacity:0;}100%{opacity:1;}"]);
119
140
  const skeletonAnimation = styled.keyframes(["0%{transform:translateX(-100%);}100%{transform:translateX(100%);}"]);
120
141
  const skeletonRtlAnimation = styled.keyframes(["0%{transform:translateX(100%);}100%{transform:translateX(-100%)}"]);
121
- const retrieveSkeletonBackgroundColor = _ref => {
142
+ const getBackgroundColor = _ref => {
122
143
  let {
123
144
  theme,
124
- isLight
145
+ $isLight
125
146
  } = _ref;
126
- if (isLight) {
127
- return styled.css(["background-color:", ";"], polished.rgba(reactTheming.getColorV8('background', 600 , theme), 0.2));
147
+ let backgroundColor;
148
+ if ($isLight) {
149
+ backgroundColor = reactTheming.getColor({
150
+ theme,
151
+ hue: 'white',
152
+ transparency: theme.opacity[200]
153
+ });
154
+ } else {
155
+ backgroundColor = reactTheming.getColor({
156
+ theme,
157
+ hue: 'neutralHue',
158
+ transparency: theme.opacity[200],
159
+ light: {
160
+ shade: 700
161
+ },
162
+ dark: {
163
+ shade: 500
164
+ }
165
+ });
128
166
  }
129
- return styled.css(["background-color:", ";"], reactTheming.getColorV8('neutralHue', 800, theme, 0.1));
167
+ return backgroundColor;
130
168
  };
131
- const retrieveSkeletonAnimation = _ref2 => {
169
+ const animationStyles = _ref2 => {
132
170
  let {
133
171
  theme
134
172
  } = _ref2;
@@ -137,20 +175,16 @@ const retrieveSkeletonAnimation = _ref2 => {
137
175
  }
138
176
  return styled.css(["animation:", " 1.5s ease-in-out 300ms infinite;"], skeletonAnimation);
139
177
  };
140
- const retrieveSkeletonGradient = _ref3 => {
141
- let {
142
- theme,
143
- isLight
144
- } = _ref3;
145
- return styled.css(["background-image:linear-gradient( ", ",transparent,", ",transparent );"], theme.rtl ? '-45deg' : '45deg', isLight ? reactTheming.getColorV8('chromeHue', 700, theme, 0.4) : polished.rgba(reactTheming.getColorV8('background', 600 , theme), 0.6));
178
+ const gradientStyles = props => {
179
+ return styled.css(["background-image:linear-gradient( ", ",transparent,", ",transparent );"], props.theme.rtl ? '-45deg' : '45deg', getBackgroundColor);
146
180
  };
147
181
  const StyledSkeleton = styled__default.default.div.attrs({
148
182
  'data-garden-id': COMPONENT_ID$4,
149
- 'data-garden-version': '9.0.0-next.12'
183
+ 'data-garden-version': '9.0.0-next.14'
150
184
  }).withConfig({
151
185
  displayName: "StyledSkeleton",
152
186
  componentId: "sc-1raozze-0"
153
- })(["display:inline-block;position:relative;animation:", " 750ms linear;border-radius:", ";width:", ";height:", ";overflow:hidden;line-height:", ";", " &::before{position:absolute;top:0;width:1000px;height:100%;content:'';", " ", "}", ";"], fadeInAnimation, props => props.theme.borderRadii.md, props => props.customWidth, props => props.customHeight, props => reactTheming.getLineHeight(props.theme.fontSizes.sm, props.theme.space.base * 5), retrieveSkeletonBackgroundColor, retrieveSkeletonAnimation, retrieveSkeletonGradient, props => reactTheming.retrieveComponentStyles(COMPONENT_ID$4, props));
187
+ })(["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, props => reactTheming.retrieveComponentStyles(COMPONENT_ID$4, props));
154
188
  StyledSkeleton.defaultProps = {
155
189
  theme: reactTheming.DEFAULT_THEME
156
190
  };
@@ -174,7 +208,7 @@ StyledSpinnerCircle.defaultProps = {
174
208
  };
175
209
 
176
210
  const StyledSVG = styled__default.default.svg.attrs(props => ({
177
- 'data-garden-version': '9.0.0-next.12',
211
+ 'data-garden-version': '9.0.0-next.14',
178
212
  xmlns: 'http://www.w3.org/2000/svg',
179
213
  width: props.width,
180
214
  height: props.height,
@@ -190,7 +224,12 @@ StyledSVG.defaultProps = {
190
224
  };
191
225
 
192
226
  const COMPONENT_ID$3 = 'loaders.inline';
193
- const PULSE_ANIMATION = styled.keyframes(["0%,100%{opacity:.2;}50%{opacity:.8;}"]);
227
+ const retrieveAnimation = _ref => {
228
+ let {
229
+ theme
230
+ } = _ref;
231
+ return styled.keyframes(["0%,100%{opacity:", ";}50%{opacity:", ";}"], theme.opacity[200], theme.opacity[600]);
232
+ };
194
233
  const StyledCircle = styled__default.default.circle.attrs({
195
234
  fill: 'currentColor',
196
235
  cy: 2,
@@ -204,14 +243,14 @@ StyledCircle.defaultProps = {
204
243
  };
205
244
  const StyledInline = styled__default.default.svg.attrs(props => ({
206
245
  'data-garden-id': COMPONENT_ID$3,
207
- 'data-garden-version': '9.0.0-next.12',
246
+ 'data-garden-version': '9.0.0-next.14',
208
247
  viewBox: '0 0 16 4',
209
248
  width: props.size,
210
249
  height: props.size * 0.25
211
250
  })).withConfig({
212
251
  displayName: "StyledInline",
213
252
  componentId: "sc-fxsb9l-1"
214
- })(["color:", ";", "{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:", ";}}", ""], props => props.color, StyledCircle, PULSE_ANIMATION, props => props.theme.rtl ? 'unset' : '0.4s', PULSE_ANIMATION, PULSE_ANIMATION, props => props.theme.rtl ? '0.4s' : 'unset', props => reactTheming.retrieveComponentStyles(COMPONENT_ID$3, props));
253
+ })(["color:", ";", "{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:", ";}}", ""], props => props.color, StyledCircle, retrieveAnimation, props => props.theme.rtl ? 'unset' : '0.4s', retrieveAnimation, retrieveAnimation, props => props.theme.rtl ? '0.4s' : 'unset', props => reactTheming.retrieveComponentStyles(COMPONENT_ID$3, props));
215
254
  StyledInline.defaultProps = {
216
255
  theme: reactTheming.DEFAULT_THEME
217
256
  };
@@ -306,7 +345,7 @@ const Progress = React__default.default.forwardRef((_ref, ref) => {
306
345
  return (
307
346
  React__default.default.createElement(StyledProgressBackground, Object.assign({
308
347
  "data-garden-id": COMPONENT_ID$1,
309
- "data-garden-version": '9.0.0-next.12',
348
+ "data-garden-version": '9.0.0-next.14',
310
349
  "aria-valuemax": 100,
311
350
  "aria-valuemin": 0,
312
351
  "aria-valuenow": percentage,
@@ -340,9 +379,9 @@ const Skeleton = React.forwardRef((_ref, ref) => {
340
379
  } = _ref;
341
380
  return React__default.default.createElement(StyledSkeleton, Object.assign({
342
381
  ref: ref,
343
- isLight: isLight,
344
- customWidth: width,
345
- customHeight: height
382
+ $isLight: isLight,
383
+ $width: width,
384
+ $height: height
346
385
  }, other), "\xA0");
347
386
  });
348
387
  Skeleton.displayName = 'Skeleton';
@@ -4,7 +4,8 @@
4
4
  * Use of this source code is governed under the Apache License, Version 2.0
5
5
  * found at http://www.apache.org/licenses/LICENSE-2.0.
6
6
  */
7
- export declare const StyledCircle: import("styled-components").StyledComponent<"circle", import("styled-components").DefaultTheme, {
7
+ import { DefaultTheme } from 'styled-components';
8
+ export declare const StyledCircle: import("styled-components").StyledComponent<"circle", DefaultTheme, {
8
9
  fill: "currentColor";
9
10
  cy: 2;
10
11
  r: 2;
@@ -13,5 +14,5 @@ interface IStyledInlineProps {
13
14
  size: number;
14
15
  color: string;
15
16
  }
16
- export declare const StyledInline: import("styled-components").StyledComponent<"svg", import("styled-components").DefaultTheme, IStyledInlineProps, never>;
17
+ export declare const StyledInline: import("styled-components").StyledComponent<"svg", DefaultTheme, IStyledInlineProps, never>;
17
18
  export {};
@@ -6,11 +6,9 @@
6
6
  */
7
7
  import { DefaultTheme } from 'styled-components';
8
8
  interface IStyledSkeletonProps {
9
- width?: string;
10
- height?: string;
11
- isLight?: boolean;
12
- customWidth?: string;
13
- customHeight?: string;
9
+ $height?: string;
10
+ $width?: string;
11
+ $isLight?: boolean;
14
12
  }
15
13
  export declare const StyledSkeleton: import("styled-components").StyledComponent<"div", DefaultTheme, {
16
14
  'data-garden-id': string;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@zendeskgarden/react-loaders",
3
- "version": "9.0.0-next.12",
3
+ "version": "9.0.0-next.14",
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>",
@@ -21,8 +21,8 @@
21
21
  "sideEffects": false,
22
22
  "types": "dist/typings/index.d.ts",
23
23
  "dependencies": {
24
- "@zendeskgarden/container-schedule": "^2.0.0",
25
- "polished": "^4.0.0",
24
+ "@zendeskgarden/container-schedule": "^2.0.9",
25
+ "polished": "^4.3.1",
26
26
  "prop-types": "^15.5.7"
27
27
  },
28
28
  "peerDependencies": {
@@ -32,7 +32,7 @@
32
32
  "styled-components": "^5.3.1"
33
33
  },
34
34
  "devDependencies": {
35
- "@zendeskgarden/react-theming": "^9.0.0-next.12"
35
+ "@zendeskgarden/react-theming": "^9.0.0-next.14"
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": "7925ff78236795111e2953efbce549839df3a86d"
47
+ "gitHead": "4cd4e10839f6d083f0c5e642b99256e390a37ae6"
48
48
  }