@khanacademy/wonder-blocks-progress-spinner 1.1.32 → 1.1.33
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.
- package/CHANGELOG.md +6 -0
- package/dist/es/index.js +4 -2
- package/dist/index.js +4 -2
- package/package.json +1 -1
- package/src/components/circular-spinner.js +2 -1
package/CHANGELOG.md
CHANGED
package/dist/es/index.js
CHANGED
|
@@ -25,7 +25,8 @@ class CircularSpinner extends React.Component {
|
|
|
25
25
|
const {
|
|
26
26
|
size,
|
|
27
27
|
light,
|
|
28
|
-
style
|
|
28
|
+
style,
|
|
29
|
+
testId
|
|
29
30
|
} = this.props;
|
|
30
31
|
const height = heights[size];
|
|
31
32
|
const path = paths[size];
|
|
@@ -34,7 +35,8 @@ class CircularSpinner extends React.Component {
|
|
|
34
35
|
xmlns: "http://www.w3.org/2000/svg",
|
|
35
36
|
width: height,
|
|
36
37
|
height: height,
|
|
37
|
-
viewBox: `0 0 ${height} ${height}
|
|
38
|
+
viewBox: `0 0 ${height} ${height}`,
|
|
39
|
+
"data-test-id": testId
|
|
38
40
|
}, React.createElement(StyledPath, {
|
|
39
41
|
style: [styles.loadingSpinner, {
|
|
40
42
|
fill: color
|
package/dist/index.js
CHANGED
|
@@ -148,7 +148,8 @@ class CircularSpinner extends react__WEBPACK_IMPORTED_MODULE_0__["Component"] {
|
|
|
148
148
|
const {
|
|
149
149
|
size,
|
|
150
150
|
light,
|
|
151
|
-
style
|
|
151
|
+
style,
|
|
152
|
+
testId
|
|
152
153
|
} = this.props;
|
|
153
154
|
const height = heights[size];
|
|
154
155
|
const path = paths[size];
|
|
@@ -157,7 +158,8 @@ class CircularSpinner extends react__WEBPACK_IMPORTED_MODULE_0__["Component"] {
|
|
|
157
158
|
xmlns: "http://www.w3.org/2000/svg",
|
|
158
159
|
width: height,
|
|
159
160
|
height: height,
|
|
160
|
-
viewBox: `0 0 ${height} ${height}
|
|
161
|
+
viewBox: `0 0 ${height} ${height}`,
|
|
162
|
+
"data-test-id": testId
|
|
161
163
|
}, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0__["createElement"](StyledPath, {
|
|
162
164
|
style: [styles.loadingSpinner, {
|
|
163
165
|
fill: color
|
package/package.json
CHANGED
|
@@ -66,7 +66,7 @@ export default class CircularSpinner extends React.Component<Props> {
|
|
|
66
66
|
};
|
|
67
67
|
|
|
68
68
|
render(): React.Node {
|
|
69
|
-
const {size, light, style} = this.props;
|
|
69
|
+
const {size, light, style, testId} = this.props;
|
|
70
70
|
|
|
71
71
|
const height = heights[size];
|
|
72
72
|
const path = paths[size];
|
|
@@ -78,6 +78,7 @@ export default class CircularSpinner extends React.Component<Props> {
|
|
|
78
78
|
width={height}
|
|
79
79
|
height={height}
|
|
80
80
|
viewBox={`0 0 ${height} ${height}`}
|
|
81
|
+
data-test-id={testId}
|
|
81
82
|
>
|
|
82
83
|
<StyledPath
|
|
83
84
|
style={[styles.loadingSpinner, {fill: color}]}
|