@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
package/CHANGELOG.md CHANGED
@@ -3,6 +3,19 @@
3
3
  All notable changes to this project will be documented in this file.
4
4
  See [Conventional Commits](https://conventionalcommits.org) for commit guidelines.
5
5
 
6
+ ## [11.7.9-pr-snapshot-1792147648392](https://github.com/instructure/instructure-ui/compare/v11.7.8...v11.7.9-pr-snapshot-1792147648392) (2026-10-16)
7
+
8
+ ### Build System
9
+
10
+ * **many:** replace babel with swc ([7e36c54](https://github.com/instructure/instructure-ui/commit/7e36c54d240b4fa483801c03ab18e7f860f561e2))
11
+
12
+ ### BREAKING CHANGES
13
+
14
+ * **many:** `@instructure/ui-babel-preset` and
15
+ `@instructure/browserslist-config-instui` are removed and will no longer be
16
+ published. Packages depend on `@swc/helpers` instead of `@babel/runtime`.
17
+
18
+
6
19
  ## [11.7.8](https://github.com/instructure/instructure-ui/compare/v11.7.7...v11.7.8) (2026-10-02)
7
20
 
8
21
  **Note:** Version bump only for package @instructure/ui-progress
@@ -1,28 +1,5 @@
1
- var _dec, _class;
2
- /*
3
- * The MIT License (MIT)
4
- *
5
- * Copyright (c) 2015 - present Instructure, Inc.
6
- *
7
- * Permission is hereby granted, free of charge, to any person obtaining a copy
8
- * of this software and associated documentation files (the "Software"), to deal
9
- * in the Software without restriction, including without limitation the rights
10
- * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
11
- * copies of the Software, and to permit persons to whom the Software is
12
- * furnished to do so, subject to the following conditions:
13
- *
14
- * The above copyright notice and this permission notice shall be included in all
15
- * copies or substantial portions of the Software.
16
- *
17
- * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
18
- * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
19
- * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
20
- * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
21
- * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
22
- * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
23
- * SOFTWARE.
24
- */
25
-
1
+ import { _ as _ts_decorate } from "@swc/helpers/_/_ts_decorate";
2
+ import { jsx as _jsx, jsxs as _jsxs } from "@emotion/react/jsx-runtime";
26
3
  import { Component } from 'react';
27
4
  import { View } from '@instructure/ui-view/v11_6';
28
5
  import { callRenderProp, passthroughProps } from '@instructure/ui-react-utils';
@@ -30,103 +7,93 @@ import { withStyle } from '@instructure/emotion';
30
7
  import generateStyle from './styles.js';
31
8
  import generateComponentTheme from './theme.js';
32
9
  import { allowedProps } from './props.js';
33
-
34
- /**
35
- ---
36
- category: components
37
- ---
38
- **/
39
- import { jsx as _jsx, jsxs as _jsxs } from "@emotion/react/jsx-runtime";
40
- let ProgressBar = (_dec = withStyle(generateStyle, generateComponentTheme), _dec(_class = class ProgressBar extends Component {
41
- static displayName = 'ProgressBar';
42
- static componentId = 'ProgressBar';
43
- static allowedProps = allowedProps;
44
- static defaultProps = {
45
- formatScreenReaderValue: ({
46
- valueNow,
47
- valueMax
48
- }) => `${valueNow} / ${valueMax}`,
49
- size: 'medium',
50
- valueMax: 100,
51
- valueNow: 0,
52
- as: 'div',
53
- color: 'primary',
54
- shouldAnimate: false,
55
- // default to showing `success` color on completion
56
- meterColor: ({
57
- valueNow,
58
- valueMax
59
- }) => valueNow / valueMax >= 1 ? 'success' : 'brand'
60
- };
61
- ref = null;
62
- componentDidMount() {
63
- this.props.makeStyles?.();
64
- }
65
- componentDidUpdate() {
66
- this.props.makeStyles?.();
67
- }
68
- handleRef = el => {
69
- const {
70
- elementRef
71
- } = this.props;
72
- this.ref = el;
73
- if (typeof elementRef === 'function') {
74
- elementRef(el);
10
+ class ProgressBar extends Component {
11
+ static{
12
+ this.displayName = 'ProgressBar';
13
+ }
14
+ static{
15
+ this.componentId = 'ProgressBar';
16
+ }
17
+ static{
18
+ this.allowedProps = allowedProps;
19
+ }
20
+ static{
21
+ this.defaultProps = {
22
+ formatScreenReaderValue: ({ valueNow, valueMax })=>`${valueNow} / ${valueMax}`,
23
+ size: 'medium',
24
+ valueMax: 100,
25
+ valueNow: 0,
26
+ as: 'div',
27
+ color: 'primary',
28
+ shouldAnimate: false,
29
+ meterColor: ({ valueNow, valueMax })=>valueNow / valueMax >= 1 ? 'success' : 'brand'
30
+ };
31
+ }
32
+ componentDidMount() {
33
+ this.props.makeStyles?.();
34
+ }
35
+ componentDidUpdate() {
36
+ this.props.makeStyles?.();
37
+ }
38
+ render() {
39
+ const { renderValue, formatScreenReaderValue, valueNow, valueMax, screenReaderLabel, size, color, meterColor, renderValueInside, styles, ...props } = this.props;
40
+ const valueText = typeof formatScreenReaderValue === 'function' ? formatScreenReaderValue({
41
+ valueNow: valueNow,
42
+ valueMax: valueMax
43
+ }) : undefined;
44
+ const value = callRenderProp(renderValue, {
45
+ valueNow: valueNow,
46
+ valueMax: valueMax
47
+ });
48
+ return /*#__PURE__*/ _jsxs(View, {
49
+ ...passthroughProps(props),
50
+ as: this.props.as,
51
+ css: styles?.progressBar,
52
+ margin: this.props.margin,
53
+ elementRef: this.handleRef,
54
+ "data-cid": "ProgressBar",
55
+ children: [
56
+ /*#__PURE__*/ _jsxs("span", {
57
+ css: styles?.trackLayout,
58
+ children: [
59
+ /*#__PURE__*/ _jsx("progress", {
60
+ css: styles?.htmlProgress,
61
+ max: valueMax,
62
+ value: valueNow,
63
+ "aria-valuetext": valueText,
64
+ "aria-label": screenReaderLabel
65
+ }),
66
+ /*#__PURE__*/ _jsx("span", {
67
+ css: styles?.track,
68
+ role: "presentation",
69
+ "aria-hidden": "true",
70
+ children: /*#__PURE__*/ _jsx("span", {
71
+ css: styles?.trackValue,
72
+ children: renderValueInside && value
73
+ })
74
+ })
75
+ ]
76
+ }),
77
+ value && !renderValueInside && /*#__PURE__*/ _jsx("span", {
78
+ css: styles?.value,
79
+ "aria-hidden": "true",
80
+ children: value
81
+ })
82
+ ]
83
+ });
84
+ }
85
+ constructor(...args){
86
+ super(...args), this.ref = null, this.handleRef = (el)=>{
87
+ const { elementRef } = this.props;
88
+ this.ref = el;
89
+ if (typeof elementRef === 'function') {
90
+ elementRef(el);
91
+ }
92
+ };
75
93
  }
76
- };
77
- render() {
78
- const {
79
- renderValue,
80
- formatScreenReaderValue,
81
- valueNow,
82
- valueMax,
83
- screenReaderLabel,
84
- size,
85
- color,
86
- meterColor,
87
- renderValueInside,
88
- styles,
89
- ...props
90
- } = this.props;
91
- const valueText = typeof formatScreenReaderValue === 'function' ? formatScreenReaderValue({
92
- valueNow: valueNow,
93
- valueMax: valueMax
94
- }) : undefined;
95
- const value = callRenderProp(renderValue, {
96
- valueNow: valueNow,
97
- valueMax: valueMax
98
- });
99
- return _jsxs(View, {
100
- ...passthroughProps(props),
101
- as: this.props.as,
102
- css: styles?.progressBar,
103
- margin: this.props.margin,
104
- elementRef: this.handleRef,
105
- "data-cid": "ProgressBar",
106
- children: [_jsxs("span", {
107
- css: styles?.trackLayout,
108
- children: [_jsx("progress", {
109
- css: styles?.htmlProgress,
110
- max: valueMax,
111
- value: valueNow,
112
- "aria-valuetext": valueText,
113
- "aria-label": screenReaderLabel
114
- }), _jsx("span", {
115
- css: styles?.track,
116
- role: "presentation",
117
- "aria-hidden": "true",
118
- children: _jsx("span", {
119
- css: styles?.trackValue,
120
- children: renderValueInside && value
121
- })
122
- })]
123
- }), value && !renderValueInside && _jsx("span", {
124
- css: styles?.value,
125
- "aria-hidden": "true",
126
- children: value
127
- })]
128
- });
129
- }
130
- }) || _class);
94
+ }
95
+ ProgressBar = _ts_decorate([
96
+ withStyle(generateStyle, generateComponentTheme)
97
+ ], ProgressBar);
131
98
  export default ProgressBar;
132
- export { ProgressBar };
99
+ export { ProgressBar };
@@ -1,26 +1,15 @@
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
- const allowedProps = ['screenReaderLabel', 'size', 'valueMax', 'valueNow', 'formatScreenReaderValue', 'renderValue', 'color', 'meterColor', 'shouldAnimate', 'margin', 'elementRef', 'as'];
26
- export { allowedProps };
1
+ const allowedProps = [
2
+ 'screenReaderLabel',
3
+ 'size',
4
+ 'valueMax',
5
+ 'valueNow',
6
+ 'formatScreenReaderValue',
7
+ 'renderValue',
8
+ 'color',
9
+ 'meterColor',
10
+ 'shouldAnimate',
11
+ 'margin',
12
+ 'elementRef',
13
+ 'as'
14
+ ];
15
+ export { allowedProps };
@@ -1,210 +1,168 @@
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) => {
36
- const {
37
- valueNow = 0,
38
- valueMax = 100,
39
- size,
40
- color,
41
- meterColor,
42
- shouldAnimate
43
- } = props;
44
- const meterColorClassName = typeof meterColor === 'function' ? meterColor({
45
- valueNow,
46
- valueMax
47
- }) : meterColor;
48
- const currentValue = valueNow > valueMax ? valueMax : valueNow < 0 ? 0 : valueNow;
49
- const currentValuePercent = `${currentValue / valueMax * 100}%`;
50
- const sizeVariants = {
51
- 'x-small': {
52
- track: {
53
- height: componentTheme.xSmallHeight
54
- },
55
- value: {
56
- fontSize: componentTheme.xSmallValueFontSize
57
- }
58
- },
59
- small: {
60
- track: {
61
- height: componentTheme.smallHeight
62
- },
63
- // product design wants = 18px
64
- value: {
65
- fontSize: componentTheme.smallValueFontSize
66
- }
67
- },
68
- medium: {
69
- track: {
70
- height: componentTheme.mediumHeight
71
- },
72
- value: {
73
- fontSize: componentTheme.mediumValueFontSize
74
- }
75
- },
76
- large: {
77
- track: {
78
- height: componentTheme.largeHeight
79
- },
80
- value: {
81
- fontSize: componentTheme.largeValueFontSize
82
- }
83
- }
84
- };
85
- const colorVariants = {
86
- primary: {
87
- trackLayout: {
88
- background: componentTheme.trackColor
89
- },
90
- trackBorder: {
91
- borderBottomColor: componentTheme.trackBottomBorderColor
92
- }
93
- },
94
- 'primary-inverse': {
95
- trackLayout: {
96
- background: componentTheme.trackColorInverse
97
- },
98
- trackBorder: {
99
- borderBottomColor: componentTheme.trackBottomBorderColorInverse
100
- }
101
- }
102
- };
103
- const trackBackgroundVariants = {
104
- primary: {
105
- brand: {
106
- background: componentTheme.meterColorBrand
107
- },
108
- info: {
109
- background: componentTheme.meterColorInfo
110
- },
111
- success: {
112
- background: componentTheme.meterColorSuccess
113
- },
114
- danger: {
115
- background: componentTheme.meterColorDanger
116
- },
117
- warning: {
118
- background: componentTheme.meterColorWarning
119
- },
120
- alert: {
121
- background: componentTheme.meterColorAlert
122
- }
123
- },
124
- 'primary-inverse': {
125
- brand: {
126
- background: componentTheme.meterColorBrandInverse
127
- },
128
- info: {
129
- background: componentTheme.meterColorInfoInverse
130
- },
131
- success: {
132
- background: componentTheme.meterColorSuccessInverse
133
- },
134
- danger: {
135
- background: componentTheme.meterColorDangerInverse
136
- },
137
- warning: {
138
- background: componentTheme.meterColorWarningInverse
139
- },
140
- alert: {
141
- background: componentTheme.meterColorAlertInverse
142
- }
143
- }
144
- };
145
- return {
146
- progressBar: {
147
- label: 'progressBar',
148
- display: 'flex',
149
- alignItems: 'center',
150
- fontFamily: componentTheme.fontFamily,
151
- fontWeight: componentTheme.fontWeight,
152
- lineHeight: componentTheme.lineHeight,
153
- fontSize: componentTheme.fontSize,
154
- borderRadius: componentTheme.borderRadius
155
- },
156
- trackLayout: {
157
- label: 'progressBar__trackLayout',
158
- position: 'relative',
159
- flex: 1,
160
- borderRadius: 'inherit',
161
- ...colorVariants[color].trackLayout
162
- },
163
- track: {
164
- label: 'progressBar__track',
165
- display: 'block',
166
- boxSizing: 'border-box',
167
- width: '100%',
168
- borderBottomWidth: componentTheme.trackBottomBorderWidth,
169
- borderBottomStyle: 'solid',
170
- background: 'transparent',
171
- borderRadius: 'inherit',
172
- ...sizeVariants[size].track,
173
- ...colorVariants[color].trackBorder
174
- },
175
- trackValue: {
176
- label: 'progressBar__trackValue',
177
- display: 'block',
178
- boxSizing: 'border-box',
179
- height: '100%',
180
- width: currentValuePercent,
181
- maxWidth: '100%',
182
- borderRadius: 'inherit',
183
- ...(shouldAnimate && {
184
- transition: 'all 0.5s'
185
- }),
186
- ...(meterColorClassName && trackBackgroundVariants[color][meterColorClassName])
187
- },
188
- value: {
189
- label: 'progressBar__value',
190
- lineHeight: 1,
191
- boxSizing: 'border-box',
192
- paddingInlineStart: componentTheme.valuePadding,
193
- flex: '0 0 5.625rem',
194
- ...sizeVariants[size].value
195
- },
196
- htmlProgress: {
197
- label: 'progressBar__htmlProgress',
198
- display: 'block',
199
- position: 'absolute',
200
- top: '0',
201
- left: '0',
202
- width: '100%',
203
- height: '100%',
204
- boxSizing: 'border-box',
205
- zIndex: -1,
206
- opacity: 0
207
- }
208
- };
1
+ const generateStyle = (componentTheme, props)=>{
2
+ const { valueNow = 0, valueMax = 100, size, color, meterColor, shouldAnimate } = props;
3
+ const meterColorClassName = typeof meterColor === 'function' ? meterColor({
4
+ valueNow,
5
+ valueMax
6
+ }) : meterColor;
7
+ const currentValue = valueNow > valueMax ? valueMax : valueNow < 0 ? 0 : valueNow;
8
+ const currentValuePercent = `${currentValue / valueMax * 100}%`;
9
+ const sizeVariants = {
10
+ 'x-small': {
11
+ track: {
12
+ height: componentTheme.xSmallHeight
13
+ },
14
+ value: {
15
+ fontSize: componentTheme.xSmallValueFontSize
16
+ }
17
+ },
18
+ small: {
19
+ track: {
20
+ height: componentTheme.smallHeight
21
+ },
22
+ value: {
23
+ fontSize: componentTheme.smallValueFontSize
24
+ }
25
+ },
26
+ medium: {
27
+ track: {
28
+ height: componentTheme.mediumHeight
29
+ },
30
+ value: {
31
+ fontSize: componentTheme.mediumValueFontSize
32
+ }
33
+ },
34
+ large: {
35
+ track: {
36
+ height: componentTheme.largeHeight
37
+ },
38
+ value: {
39
+ fontSize: componentTheme.largeValueFontSize
40
+ }
41
+ }
42
+ };
43
+ const colorVariants = {
44
+ primary: {
45
+ trackLayout: {
46
+ background: componentTheme.trackColor
47
+ },
48
+ trackBorder: {
49
+ borderBottomColor: componentTheme.trackBottomBorderColor
50
+ }
51
+ },
52
+ 'primary-inverse': {
53
+ trackLayout: {
54
+ background: componentTheme.trackColorInverse
55
+ },
56
+ trackBorder: {
57
+ borderBottomColor: componentTheme.trackBottomBorderColorInverse
58
+ }
59
+ }
60
+ };
61
+ const trackBackgroundVariants = {
62
+ primary: {
63
+ brand: {
64
+ background: componentTheme.meterColorBrand
65
+ },
66
+ info: {
67
+ background: componentTheme.meterColorInfo
68
+ },
69
+ success: {
70
+ background: componentTheme.meterColorSuccess
71
+ },
72
+ danger: {
73
+ background: componentTheme.meterColorDanger
74
+ },
75
+ warning: {
76
+ background: componentTheme.meterColorWarning
77
+ },
78
+ alert: {
79
+ background: componentTheme.meterColorAlert
80
+ }
81
+ },
82
+ 'primary-inverse': {
83
+ brand: {
84
+ background: componentTheme.meterColorBrandInverse
85
+ },
86
+ info: {
87
+ background: componentTheme.meterColorInfoInverse
88
+ },
89
+ success: {
90
+ background: componentTheme.meterColorSuccessInverse
91
+ },
92
+ danger: {
93
+ background: componentTheme.meterColorDangerInverse
94
+ },
95
+ warning: {
96
+ background: componentTheme.meterColorWarningInverse
97
+ },
98
+ alert: {
99
+ background: componentTheme.meterColorAlertInverse
100
+ }
101
+ }
102
+ };
103
+ return {
104
+ progressBar: {
105
+ label: 'progressBar',
106
+ display: 'flex',
107
+ alignItems: 'center',
108
+ fontFamily: componentTheme.fontFamily,
109
+ fontWeight: componentTheme.fontWeight,
110
+ lineHeight: componentTheme.lineHeight,
111
+ fontSize: componentTheme.fontSize,
112
+ borderRadius: componentTheme.borderRadius
113
+ },
114
+ trackLayout: {
115
+ label: 'progressBar__trackLayout',
116
+ position: 'relative',
117
+ flex: 1,
118
+ borderRadius: 'inherit',
119
+ ...colorVariants[color].trackLayout
120
+ },
121
+ track: {
122
+ label: 'progressBar__track',
123
+ display: 'block',
124
+ boxSizing: 'border-box',
125
+ width: '100%',
126
+ borderBottomWidth: componentTheme.trackBottomBorderWidth,
127
+ borderBottomStyle: 'solid',
128
+ background: 'transparent',
129
+ borderRadius: 'inherit',
130
+ ...sizeVariants[size].track,
131
+ ...colorVariants[color].trackBorder
132
+ },
133
+ trackValue: {
134
+ label: 'progressBar__trackValue',
135
+ display: 'block',
136
+ boxSizing: 'border-box',
137
+ height: '100%',
138
+ width: currentValuePercent,
139
+ maxWidth: '100%',
140
+ borderRadius: 'inherit',
141
+ ...shouldAnimate && {
142
+ transition: 'all 0.5s'
143
+ },
144
+ ...meterColorClassName && trackBackgroundVariants[color][meterColorClassName]
145
+ },
146
+ value: {
147
+ label: 'progressBar__value',
148
+ lineHeight: 1,
149
+ boxSizing: 'border-box',
150
+ paddingInlineStart: componentTheme.valuePadding,
151
+ flex: '0 0 5.625rem',
152
+ ...sizeVariants[size].value
153
+ },
154
+ htmlProgress: {
155
+ label: 'progressBar__htmlProgress',
156
+ display: 'block',
157
+ position: 'absolute',
158
+ top: '0',
159
+ left: '0',
160
+ width: '100%',
161
+ height: '100%',
162
+ boxSizing: 'border-box',
163
+ zIndex: -1,
164
+ opacity: 0
165
+ }
166
+ };
209
167
  };
210
- export default generateStyle;
168
+ export default generateStyle;