@zendeskgarden/react-loaders 9.0.0-next.11 → 9.0.0-next.13

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.11',
34
+ "data-garden-version": '9.0.0-next.13',
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.11',
30
+ 'data-garden-version': '9.0.0-next.13',
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.11',
13
+ 'data-garden-version': '9.0.0-next.13',
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.11',
46
+ 'data-garden-version': '9.0.0-next.13',
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.11',
58
+ 'data-garden-version': '9.0.0-next.13',
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.11',
11
+ 'data-garden-version': '9.0.0-next.13',
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.11'
55
+ 'data-garden-version': '9.0.0-next.13'
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.11',
69
+ 'data-garden-version': '9.0.0-next.13',
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.11',
115
+ 'data-garden-version': '9.0.0-next.13',
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.11',
127
+ 'data-garden-version': '9.0.0-next.13',
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.11'
183
+ 'data-garden-version': '9.0.0-next.13'
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.11',
211
+ 'data-garden-version': '9.0.0-next.13',
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.11',
246
+ 'data-garden-version': '9.0.0-next.13',
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.11',
348
+ "data-garden-version": '9.0.0-next.13',
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.11",
3
+ "version": "9.0.0-next.13",
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.11"
35
+ "@zendeskgarden/react-theming": "^9.0.0-next.13"
36
36
  },
37
37
  "keywords": [
38
38
  "components",
@@ -43,6 +43,5 @@
43
43
  "publishConfig": {
44
44
  "access": "public"
45
45
  },
46
- "zendeskgarden:src": "src/index.ts",
47
- "gitHead": "0de1cc664807bd993ccd3beeb78e8fd1f3828320"
46
+ "zendeskgarden:src": "src/index.ts"
48
47
  }
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