@instructure/ui-progress 11.7.8 → 11.7.9-pr-snapshot-1792147648392

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.
Files changed (37) hide show
  1. package/CHANGELOG.md +13 -0
  2. package/es/ProgressBar/v1/index.js +90 -123
  3. package/es/ProgressBar/v1/props.js +15 -26
  4. package/es/ProgressBar/v1/styles.js +167 -209
  5. package/es/ProgressBar/v1/theme.js +55 -93
  6. package/es/ProgressBar/v2/index.js +90 -123
  7. package/es/ProgressBar/v2/props.js +15 -26
  8. package/es/ProgressBar/v2/styles.js +188 -235
  9. package/es/ProgressCircle/v1/index.js +128 -165
  10. package/es/ProgressCircle/v1/props.js +16 -26
  11. package/es/ProgressCircle/v1/styles.js +291 -348
  12. package/es/ProgressCircle/v1/theme.js +88 -128
  13. package/es/ProgressCircle/v2/index.js +128 -165
  14. package/es/ProgressCircle/v2/props.js +16 -26
  15. package/es/ProgressCircle/v2/styles.js +291 -348
  16. package/es/exports/a.js +1 -25
  17. package/es/exports/b.js +1 -25
  18. package/package.json +13 -19
  19. package/tsconfig.build.json +0 -1
  20. package/tsconfig.build.tsbuildinfo +1 -1
  21. package/lib/ProgressBar/v1/index.js +0 -137
  22. package/lib/ProgressBar/v1/props.js +0 -31
  23. package/lib/ProgressBar/v1/styles.js +0 -216
  24. package/lib/ProgressBar/v1/theme.js +0 -100
  25. package/lib/ProgressBar/v2/index.js +0 -136
  26. package/lib/ProgressBar/v2/props.js +0 -31
  27. package/lib/ProgressBar/v2/styles.js +0 -242
  28. package/lib/ProgressCircle/v1/index.js +0 -182
  29. package/lib/ProgressCircle/v1/props.js +0 -31
  30. package/lib/ProgressCircle/v1/styles.js +0 -357
  31. package/lib/ProgressCircle/v1/theme.js +0 -146
  32. package/lib/ProgressCircle/v2/index.js +0 -181
  33. package/lib/ProgressCircle/v2/props.js +0 -31
  34. package/lib/ProgressCircle/v2/styles.js +0 -357
  35. package/lib/exports/a.js +0 -19
  36. package/lib/exports/b.js +0 -19
  37. package/lib/package.json +0 -1
@@ -1,351 +1,294 @@
1
- /*
2
- * The MIT License (MIT)
3
- *
4
- * Copyright (c) 2015 - present Instructure, Inc.
5
- *
6
- * Permission is hereby granted, free of charge, to any person obtaining a copy
7
- * of this software and associated documentation files (the "Software"), to deal
8
- * in the Software without restriction, including without limitation the rights
9
- * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
10
- * copies of the Software, and to permit persons to whom the Software is
11
- * furnished to do so, subject to the following conditions:
12
- *
13
- * The above copyright notice and this permission notice shall be included in all
14
- * copies or substantial portions of the Software.
15
- *
16
- * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
17
- * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
18
- * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
19
- * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
20
- * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
21
- * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
22
- * SOFTWARE.
23
- */
24
-
25
- /**
26
- * ---
27
- * private: true
28
- * ---
29
- * Generates the style object from the theme and provided additional information
30
- * @param {Object} componentTheme The theme variable object.
31
- * @param {Object} props the props of the component, the style is applied to
32
- * @param {Object} state the state of the component, the style is applied to
33
- * @return {Object} The final style object, which will be used in the component
34
- */
35
- const generateStyle = (componentTheme, props, _sharedTokens, state) => {
36
- const {
37
- size,
38
- color,
39
- meterColor,
40
- valueNow = 0,
41
- valueMax = 100
42
- } = props;
43
- const {
44
- shouldAnimateOnMount
45
- } = state;
46
- const getMeterColorClassName = typeof meterColor === 'function' ? meterColor({
47
- valueNow,
48
- valueMax
49
- }) : meterColor;
50
- const getCircumference = () => {
51
- const camelSize = size === 'x-small' ? 'xSmall' : size;
52
- // get the circumference of the meter circle
53
- return parseFloat(componentTheme[`${camelSize}Circumference`]);
54
- };
55
- const getRadii = () => {
56
- const camelSize = size === 'x-small' ? 'xSmall' : size;
1
+ const generateStyle = (componentTheme, props, _sharedTokens, state)=>{
2
+ const { size, color, meterColor, valueNow = 0, valueMax = 100 } = props;
3
+ const { shouldAnimateOnMount } = state;
4
+ const getMeterColorClassName = typeof meterColor === 'function' ? meterColor({
5
+ valueNow,
6
+ valueMax
7
+ }) : meterColor;
8
+ const getCircumference = ()=>{
9
+ const camelSize = size === 'x-small' ? 'xSmall' : size;
10
+ return parseFloat(componentTheme[`${camelSize}Circumference`]);
11
+ };
12
+ const getRadii = ()=>{
13
+ const camelSize = size === 'x-small' ? 'xSmall' : size;
14
+ return {
15
+ radius: componentTheme[`${camelSize}Radius`],
16
+ borderOffsetRadius: componentTheme[`${camelSize}BorderOffset`]
17
+ };
18
+ };
19
+ const getDashOffset = ()=>{
20
+ if (valueNow < valueMax) {
21
+ const circumference = getCircumference();
22
+ return circumference - valueNow / valueMax * circumference;
23
+ } else {
24
+ return 0;
25
+ }
26
+ };
27
+ const sizeVariants = {
28
+ 'x-small': {
29
+ progressCircle: {
30
+ width: componentTheme.xSmallSize,
31
+ height: componentTheme.xSmallSize
32
+ },
33
+ circle: {
34
+ width: componentTheme.xSmallSize,
35
+ height: componentTheme.xSmallSize
36
+ },
37
+ value: {
38
+ padding: '0.5rem'
39
+ },
40
+ border: {
41
+ transformOrigin: `${componentTheme.xSmallTransform} ${componentTheme.xSmallTransform}`
42
+ },
43
+ track: {
44
+ transformOrigin: `${componentTheme.xSmallTransform} ${componentTheme.xSmallTransform}`,
45
+ strokeWidth: componentTheme.xSmallStrokeWidth
46
+ },
47
+ meter: {
48
+ strokeWidth: componentTheme.xSmallStrokeWidth,
49
+ strokeDasharray: componentTheme.xSmallCircumference,
50
+ ...shouldAnimateOnMount && {
51
+ strokeDashoffset: `${componentTheme.xSmallCircumference} !important`
52
+ }
53
+ }
54
+ },
55
+ small: {
56
+ progressCircle: {
57
+ width: componentTheme.smallSize,
58
+ height: componentTheme.smallSize
59
+ },
60
+ circle: {
61
+ width: componentTheme.smallSize,
62
+ height: componentTheme.smallSize
63
+ },
64
+ value: {},
65
+ border: {
66
+ transformOrigin: `${componentTheme.smallTransform} ${componentTheme.smallTransform}`
67
+ },
68
+ track: {
69
+ transformOrigin: `${componentTheme.smallTransform} ${componentTheme.smallTransform}`,
70
+ strokeWidth: componentTheme.smallStrokeWidth
71
+ },
72
+ meter: {
73
+ strokeWidth: componentTheme.smallStrokeWidth,
74
+ strokeDasharray: componentTheme.smallCircumference,
75
+ ...shouldAnimateOnMount && {
76
+ strokeDashoffset: `${componentTheme.smallCircumference} !important`
77
+ }
78
+ }
79
+ },
80
+ medium: {
81
+ progressCircle: {
82
+ width: componentTheme.mediumSize,
83
+ height: componentTheme.mediumSize
84
+ },
85
+ circle: {
86
+ width: componentTheme.mediumSize,
87
+ height: componentTheme.mediumSize
88
+ },
89
+ value: {},
90
+ border: {
91
+ transformOrigin: `${componentTheme.mediumTransform} ${componentTheme.mediumTransform}`
92
+ },
93
+ track: {
94
+ transformOrigin: `${componentTheme.mediumTransform} ${componentTheme.mediumTransform}`,
95
+ strokeWidth: componentTheme.mediumStrokeWidth
96
+ },
97
+ meter: {
98
+ strokeWidth: componentTheme.mediumStrokeWidth,
99
+ strokeDasharray: componentTheme.mediumCircumference,
100
+ ...shouldAnimateOnMount && {
101
+ strokeDashoffset: `${componentTheme.mediumCircumference} !important`
102
+ }
103
+ }
104
+ },
105
+ large: {
106
+ progressCircle: {
107
+ width: componentTheme.largeSize,
108
+ height: componentTheme.largeSize
109
+ },
110
+ circle: {
111
+ width: componentTheme.largeSize,
112
+ height: componentTheme.largeSize
113
+ },
114
+ value: {},
115
+ border: {
116
+ transformOrigin: `${componentTheme.largeTransform} ${componentTheme.largeTransform}`
117
+ },
118
+ track: {
119
+ transformOrigin: `${componentTheme.largeTransform} ${componentTheme.largeTransform}`,
120
+ strokeWidth: componentTheme.largeStrokeWidth
121
+ },
122
+ meter: {
123
+ strokeWidth: componentTheme.largeStrokeWidth,
124
+ strokeDasharray: componentTheme.largeCircumference,
125
+ ...shouldAnimateOnMount && {
126
+ strokeDashoffset: `${componentTheme.largeCircumference} !important`
127
+ }
128
+ }
129
+ }
130
+ };
131
+ const colorVariants = {
132
+ primary: {
133
+ track: {
134
+ stroke: componentTheme.trackColor
135
+ },
136
+ value: {
137
+ color: componentTheme.color
138
+ },
139
+ border: {
140
+ stroke: componentTheme.trackBorderColor
141
+ }
142
+ },
143
+ 'primary-inverse': {
144
+ track: {
145
+ stroke: componentTheme.trackColorInverse
146
+ },
147
+ value: {
148
+ color: componentTheme.colorInverse
149
+ },
150
+ border: {
151
+ stroke: componentTheme.trackBorderColorInverse
152
+ }
153
+ }
154
+ };
155
+ const meterColorVariants = {
156
+ primary: {
157
+ brand: {
158
+ stroke: componentTheme.meterColorBrand
159
+ },
160
+ info: {
161
+ stroke: componentTheme.meterColorInfo
162
+ },
163
+ warning: {
164
+ stroke: componentTheme.meterColorWarning
165
+ },
166
+ danger: {
167
+ stroke: componentTheme.meterColorDanger
168
+ },
169
+ alert: {
170
+ stroke: componentTheme.meterColorAlert
171
+ },
172
+ success: {
173
+ stroke: componentTheme.meterColorSuccess
174
+ }
175
+ },
176
+ 'primary-inverse': {
177
+ brand: {
178
+ stroke: componentTheme.meterColorBrandInverse
179
+ },
180
+ info: {
181
+ stroke: componentTheme.meterColorInfoInverse
182
+ },
183
+ warning: {
184
+ stroke: componentTheme.meterColorWarningInverse
185
+ },
186
+ danger: {
187
+ stroke: componentTheme.meterColorDangerInverse
188
+ },
189
+ alert: {
190
+ stroke: componentTheme.meterColorAlertInverse
191
+ },
192
+ success: {
193
+ stroke: componentTheme.meterColorSuccessInverse
194
+ }
195
+ }
196
+ };
57
197
  return {
58
- radius: componentTheme[`${camelSize}Radius`],
59
- borderOffsetRadius: componentTheme[`${camelSize}BorderOffset`]
198
+ progressCircle: {
199
+ label: 'progressCircle',
200
+ display: 'inline-block',
201
+ verticalAlign: 'middle',
202
+ position: 'relative',
203
+ overflow: 'hidden',
204
+ fontSize: '1rem',
205
+ fontFamily: componentTheme.fontFamily,
206
+ fontWeight: componentTheme.fontWeight,
207
+ lineHeight: componentTheme.lineHeight,
208
+ ...sizeVariants[size].progressCircle
209
+ },
210
+ center: {
211
+ label: 'progressCircle__center',
212
+ transition: 'all 0.5s',
213
+ transitionDelay: '1s',
214
+ display: 'block',
215
+ position: 'absolute',
216
+ transform: 'translate3d(0, 0, 0)',
217
+ top: 0,
218
+ left: 0,
219
+ height: '100%',
220
+ width: '100%',
221
+ borderRadius: '50%',
222
+ ...shouldAnimateOnMount && {
223
+ opacity: 0,
224
+ transform: 'translate3d(0, 10%, 0)'
225
+ }
226
+ },
227
+ value: {
228
+ label: 'progressCircle__value',
229
+ boxSizing: 'border-box',
230
+ wordWrap: 'break-word',
231
+ textAlign: 'center',
232
+ borderRadius: '50%',
233
+ display: 'flex',
234
+ alignItems: 'center',
235
+ justifyContent: 'center',
236
+ padding: '1.5rem',
237
+ width: '100%',
238
+ height: '100%',
239
+ lineHeight: 1,
240
+ ...sizeVariants[size].value,
241
+ ...colorVariants[color].value
242
+ },
243
+ circle: {
244
+ label: 'progressCircle__circle',
245
+ transform: 'rotate(-90deg)',
246
+ display: 'block',
247
+ position: 'absolute',
248
+ top: 0,
249
+ left: 0,
250
+ ...sizeVariants[size].circle
251
+ },
252
+ track: {
253
+ label: 'progressCircle__track',
254
+ fill: 'none',
255
+ opacity: 1,
256
+ transition: 'all 0.5s',
257
+ transitionDelay: '0.2s',
258
+ transform: 'translate3d(0, 0, 0)',
259
+ ...sizeVariants[size].track,
260
+ ...colorVariants[color].track,
261
+ ...shouldAnimateOnMount && {
262
+ opacity: 0,
263
+ transform: 'translate3d(0, 0, 0)'
264
+ }
265
+ },
266
+ border: {
267
+ label: 'progressCircle__border',
268
+ fill: 'none',
269
+ opacity: 1,
270
+ transition: 'all 0.5s',
271
+ transform: 'translate3d(0, 0, 0) scale(1)',
272
+ ...sizeVariants[size].border,
273
+ ...colorVariants[color].border,
274
+ ...shouldAnimateOnMount && {
275
+ opacity: 0,
276
+ transform: 'translate3d(0, 0, 0) scale(0.75)'
277
+ }
278
+ },
279
+ meter: {
280
+ label: 'progressCircle__meter',
281
+ fill: 'none',
282
+ transition: 'stroke-dashoffset 1s',
283
+ transform: 'translate3d(0, 0, 0)',
284
+ ...sizeVariants[size].meter,
285
+ ...getMeterColorClassName && meterColorVariants[color][getMeterColorClassName],
286
+ ...shouldAnimateOnMount && {
287
+ opacity: 0
288
+ }
289
+ },
290
+ radii: getRadii(),
291
+ dashOffset: getDashOffset()
60
292
  };
61
- };
62
- const getDashOffset = () => {
63
- // send the stroke-dashoffset to the meter circle, checking
64
- // to make sure current value doesn't exceed max value
65
- if (valueNow < valueMax) {
66
- const circumference = getCircumference();
67
- // figure out how much offset to give the stroke to show the % complete
68
- return circumference - valueNow / valueMax * circumference;
69
- } else {
70
- return 0;
71
- }
72
- };
73
-
74
- /*
75
- Using !important on the meter shouldAnimateOnMount versions
76
- to guarantee that the bars will start showing 0 if the
77
- animateOnMount prop is set
78
- */
79
- const sizeVariants = {
80
- 'x-small': {
81
- progressCircle: {
82
- width: componentTheme.xSmallSize,
83
- height: componentTheme.xSmallSize
84
- },
85
- circle: {
86
- width: componentTheme.xSmallSize,
87
- height: componentTheme.xSmallSize
88
- },
89
- value: {
90
- padding: '0.5rem'
91
- },
92
- border: {
93
- transformOrigin: `${componentTheme.xSmallTransform} ${componentTheme.xSmallTransform}`
94
- },
95
- track: {
96
- transformOrigin: `${componentTheme.xSmallTransform} ${componentTheme.xSmallTransform}`,
97
- strokeWidth: componentTheme.xSmallStrokeWidth
98
- },
99
- meter: {
100
- strokeWidth: componentTheme.xSmallStrokeWidth,
101
- strokeDasharray: componentTheme.xSmallCircumference,
102
- ...(shouldAnimateOnMount && {
103
- strokeDashoffset: `${componentTheme.xSmallCircumference} !important`
104
- })
105
- }
106
- },
107
- small: {
108
- progressCircle: {
109
- width: componentTheme.smallSize,
110
- height: componentTheme.smallSize
111
- },
112
- circle: {
113
- width: componentTheme.smallSize,
114
- height: componentTheme.smallSize
115
- },
116
- value: {},
117
- border: {
118
- transformOrigin: `${componentTheme.smallTransform} ${componentTheme.smallTransform}`
119
- },
120
- track: {
121
- transformOrigin: `${componentTheme.smallTransform} ${componentTheme.smallTransform}`,
122
- strokeWidth: componentTheme.smallStrokeWidth
123
- },
124
- meter: {
125
- strokeWidth: componentTheme.smallStrokeWidth,
126
- strokeDasharray: componentTheme.smallCircumference,
127
- ...(shouldAnimateOnMount && {
128
- strokeDashoffset: `${componentTheme.smallCircumference} !important`
129
- })
130
- }
131
- },
132
- medium: {
133
- progressCircle: {
134
- width: componentTheme.mediumSize,
135
- height: componentTheme.mediumSize
136
- },
137
- circle: {
138
- width: componentTheme.mediumSize,
139
- height: componentTheme.mediumSize
140
- },
141
- value: {},
142
- border: {
143
- transformOrigin: `${componentTheme.mediumTransform} ${componentTheme.mediumTransform}`
144
- },
145
- track: {
146
- transformOrigin: `${componentTheme.mediumTransform} ${componentTheme.mediumTransform}`,
147
- strokeWidth: componentTheme.mediumStrokeWidth
148
- },
149
- meter: {
150
- strokeWidth: componentTheme.mediumStrokeWidth,
151
- strokeDasharray: componentTheme.mediumCircumference,
152
- ...(shouldAnimateOnMount && {
153
- strokeDashoffset: `${componentTheme.mediumCircumference} !important`
154
- })
155
- }
156
- },
157
- large: {
158
- progressCircle: {
159
- width: componentTheme.largeSize,
160
- height: componentTheme.largeSize
161
- },
162
- circle: {
163
- width: componentTheme.largeSize,
164
- height: componentTheme.largeSize
165
- },
166
- value: {},
167
- border: {
168
- transformOrigin: `${componentTheme.largeTransform} ${componentTheme.largeTransform}`
169
- },
170
- track: {
171
- transformOrigin: `${componentTheme.largeTransform} ${componentTheme.largeTransform}`,
172
- strokeWidth: componentTheme.largeStrokeWidth
173
- },
174
- meter: {
175
- strokeWidth: componentTheme.largeStrokeWidth,
176
- strokeDasharray: componentTheme.largeCircumference,
177
- ...(shouldAnimateOnMount && {
178
- strokeDashoffset: `${componentTheme.largeCircumference} !important`
179
- })
180
- }
181
- }
182
- };
183
- const colorVariants = {
184
- primary: {
185
- track: {
186
- stroke: componentTheme.trackColor
187
- },
188
- value: {
189
- color: componentTheme.color
190
- },
191
- border: {
192
- stroke: componentTheme.trackBorderColor
193
- }
194
- },
195
- 'primary-inverse': {
196
- track: {
197
- stroke: componentTheme.trackColorInverse
198
- },
199
- value: {
200
- color: componentTheme.colorInverse
201
- },
202
- border: {
203
- stroke: componentTheme.trackBorderColorInverse
204
- }
205
- }
206
- };
207
- const meterColorVariants = {
208
- primary: {
209
- brand: {
210
- stroke: componentTheme.meterColorBrand
211
- },
212
- info: {
213
- stroke: componentTheme.meterColorInfo
214
- },
215
- warning: {
216
- stroke: componentTheme.meterColorWarning
217
- },
218
- danger: {
219
- stroke: componentTheme.meterColorDanger
220
- },
221
- alert: {
222
- stroke: componentTheme.meterColorAlert
223
- },
224
- success: {
225
- stroke: componentTheme.meterColorSuccess
226
- }
227
- },
228
- 'primary-inverse': {
229
- brand: {
230
- stroke: componentTheme.meterColorBrandInverse
231
- },
232
- info: {
233
- stroke: componentTheme.meterColorInfoInverse
234
- },
235
- warning: {
236
- stroke: componentTheme.meterColorWarningInverse
237
- },
238
- danger: {
239
- stroke: componentTheme.meterColorDangerInverse
240
- },
241
- alert: {
242
- stroke: componentTheme.meterColorAlertInverse
243
- },
244
- success: {
245
- stroke: componentTheme.meterColorSuccessInverse
246
- }
247
- }
248
- };
249
- return {
250
- progressCircle: {
251
- label: 'progressCircle',
252
- display: 'inline-block',
253
- verticalAlign: 'middle',
254
- position: 'relative',
255
- overflow: 'hidden',
256
- /*
257
- Seems like a good idea to reset font-size because
258
- the SVG uses ems and might inherit a container's
259
- font-size
260
- */
261
- fontSize: '1rem',
262
- fontFamily: componentTheme.fontFamily,
263
- fontWeight: componentTheme.fontWeight,
264
- lineHeight: componentTheme.lineHeight,
265
- ...sizeVariants[size].progressCircle
266
- },
267
- center: {
268
- label: 'progressCircle__center',
269
- transition: 'all 0.5s',
270
- transitionDelay: '1s',
271
- display: 'block',
272
- position: 'absolute',
273
- transform: 'translate3d(0, 0, 0)',
274
- top: 0,
275
- left: 0,
276
- height: '100%',
277
- width: '100%',
278
- borderRadius: '50%',
279
- ...(shouldAnimateOnMount && {
280
- opacity: 0,
281
- transform: 'translate3d(0, 10%, 0)'
282
- })
283
- },
284
- value: {
285
- label: 'progressCircle__value',
286
- boxSizing: 'border-box',
287
- wordWrap: 'break-word',
288
- textAlign: 'center',
289
- borderRadius: '50%',
290
- display: 'flex',
291
- alignItems: 'center',
292
- justifyContent: 'center',
293
- padding: '1.5rem',
294
- width: '100%',
295
- height: '100%',
296
- lineHeight: 1,
297
- ...sizeVariants[size].value,
298
- ...colorVariants[color].value
299
- },
300
- circle: {
301
- label: 'progressCircle__circle',
302
- transform: 'rotate(-90deg)',
303
- display: 'block',
304
- position: 'absolute',
305
- top: 0,
306
- left: 0,
307
- ...sizeVariants[size].circle
308
- },
309
- track: {
310
- label: 'progressCircle__track',
311
- fill: 'none',
312
- opacity: 1,
313
- transition: 'all 0.5s',
314
- transitionDelay: '0.2s',
315
- transform: 'translate3d(0, 0, 0)',
316
- ...sizeVariants[size].track,
317
- ...colorVariants[color].track,
318
- ...(shouldAnimateOnMount && {
319
- opacity: 0,
320
- transform: 'translate3d(0, 0, 0)'
321
- })
322
- },
323
- border: {
324
- label: 'progressCircle__border',
325
- fill: 'none',
326
- opacity: 1,
327
- transition: 'all 0.5s',
328
- transform: 'translate3d(0, 0, 0) scale(1)',
329
- ...sizeVariants[size].border,
330
- ...colorVariants[color].border,
331
- ...(shouldAnimateOnMount && {
332
- opacity: 0,
333
- transform: 'translate3d(0, 0, 0) scale(0.75)'
334
- })
335
- },
336
- meter: {
337
- label: 'progressCircle__meter',
338
- fill: 'none',
339
- transition: 'stroke-dashoffset 1s',
340
- transform: 'translate3d(0, 0, 0)',
341
- ...sizeVariants[size].meter,
342
- ...(getMeterColorClassName && meterColorVariants[color][getMeterColorClassName]),
343
- ...(shouldAnimateOnMount && {
344
- opacity: 0
345
- })
346
- },
347
- radii: getRadii(),
348
- dashOffset: getDashOffset()
349
- };
350
293
  };
351
- export default generateStyle;
294
+ export default generateStyle;
package/es/exports/a.js CHANGED
@@ -1,26 +1,2 @@
1
- /*
2
- * The MIT License (MIT)
3
- *
4
- * Copyright (c) 2015 - present Instructure, Inc.
5
- *
6
- * Permission is hereby granted, free of charge, to any person obtaining a copy
7
- * of this software and associated documentation files (the "Software"), to deal
8
- * in the Software without restriction, including without limitation the rights
9
- * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
10
- * copies of the Software, and to permit persons to whom the Software is
11
- * furnished to do so, subject to the following conditions:
12
- *
13
- * The above copyright notice and this permission notice shall be included in all
14
- * copies or substantial portions of the Software.
15
- *
16
- * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
17
- * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
18
- * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
19
- * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
20
- * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
21
- * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
22
- * SOFTWARE.
23
- */
24
-
25
1
  export { ProgressBar } from '../ProgressBar/v1/index.js';
26
- export { ProgressCircle } from '../ProgressCircle/v1/index.js';
2
+ export { ProgressCircle } from '../ProgressCircle/v1/index.js';
package/es/exports/b.js CHANGED
@@ -1,26 +1,2 @@
1
- /*
2
- * The MIT License (MIT)
3
- *
4
- * Copyright (c) 2015 - present Instructure, Inc.
5
- *
6
- * Permission is hereby granted, free of charge, to any person obtaining a copy
7
- * of this software and associated documentation files (the "Software"), to deal
8
- * in the Software without restriction, including without limitation the rights
9
- * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
10
- * copies of the Software, and to permit persons to whom the Software is
11
- * furnished to do so, subject to the following conditions:
12
- *
13
- * The above copyright notice and this permission notice shall be included in all
14
- * copies or substantial portions of the Software.
15
- *
16
- * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
17
- * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
18
- * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
19
- * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
20
- * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
21
- * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
22
- * SOFTWARE.
23
- */
24
-
25
1
  export { ProgressBar } from '../ProgressBar/v2/index.js';
26
- export { ProgressCircle } from '../ProgressCircle/v2/index.js';
2
+ export { ProgressCircle } from '../ProgressCircle/v2/index.js';