@khanacademy/wonder-blocks-progress-spinner 1.1.28 → 1.1.31

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 ADDED
@@ -0,0 +1,20 @@
1
+ # @khanacademy/wonder-blocks-progress-spinner
2
+
3
+ ## 1.1.31
4
+
5
+ ### Patch Changes
6
+
7
+ - @khanacademy/wonder-blocks-core@4.3.1
8
+
9
+ ## 1.1.30
10
+
11
+ ### Patch Changes
12
+
13
+ - Updated dependencies [246a921d]
14
+ - @khanacademy/wonder-blocks-core@4.3.0
15
+
16
+ ## 1.1.29
17
+
18
+ ### Patch Changes
19
+
20
+ - @khanacademy/wonder-blocks-core@4.2.1
package/dist/es/index.js CHANGED
@@ -1,6 +1,6 @@
1
- import { Component, createElement } from 'react';
1
+ import * as React from 'react';
2
2
  import { StyleSheet } from 'aphrodite';
3
- import { View, addStyle } from '@khanacademy/wonder-blocks-core';
3
+ import { addStyle, View } from '@khanacademy/wonder-blocks-core';
4
4
  import Color from '@khanacademy/wonder-blocks-color';
5
5
 
6
6
  const heights = {
@@ -20,12 +20,7 @@ const colors = {
20
20
  dark: Color.offBlack16
21
21
  };
22
22
  const StyledPath = addStyle("path");
23
-
24
- /**
25
- * A circular progress spinner. Used for indicating loading progress. Should
26
- * be used by default in most places where a loading indicator is needed.
27
- */
28
- class CircularSpinner extends Component {
23
+ class CircularSpinner extends React.Component {
29
24
  render() {
30
25
  const {
31
26
  size,
@@ -35,19 +30,19 @@ class CircularSpinner extends Component {
35
30
  const height = heights[size];
36
31
  const path = paths[size];
37
32
  const color = light ? colors.light : colors.dark;
38
- const svg = /*#__PURE__*/createElement("svg", {
33
+ const svg = React.createElement("svg", {
39
34
  xmlns: "http://www.w3.org/2000/svg",
40
35
  width: height,
41
36
  height: height,
42
37
  viewBox: `0 0 ${height} ${height}`
43
- }, /*#__PURE__*/createElement(StyledPath, {
38
+ }, React.createElement(StyledPath, {
44
39
  style: [styles.loadingSpinner, {
45
40
  fill: color
46
41
  }],
47
42
  fillRule: "nonzero",
48
43
  d: path
49
44
  }));
50
- return /*#__PURE__*/createElement(View, {
45
+ return React.createElement(View, {
51
46
  style: [styles.spinnerContainer, style]
52
47
  }, svg);
53
48
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@khanacademy/wonder-blocks-progress-spinner",
3
- "version": "1.1.28",
3
+ "version": "1.1.31",
4
4
  "design": "v1",
5
5
  "publishConfig": {
6
6
  "access": "public"
@@ -17,7 +17,7 @@
17
17
  "dependencies": {
18
18
  "@babel/runtime": "^7.16.3",
19
19
  "@khanacademy/wonder-blocks-color": "^1.1.20",
20
- "@khanacademy/wonder-blocks-core": "^4.0.0",
20
+ "@khanacademy/wonder-blocks-core": "^4.3.1",
21
21
  "@khanacademy/wonder-blocks-spacing": "^3.0.5"
22
22
  },
23
23
  "peerDependencies": {
@@ -25,7 +25,6 @@
25
25
  "react": "16.14.0"
26
26
  },
27
27
  "devDependencies": {
28
- "wb-dev-build-settings": "^0.2.0"
29
- },
30
- "gitHead": "9ebea88533e702011165072f090a377e02fa3f0f"
28
+ "wb-dev-build-settings": "^0.4.0"
29
+ }
31
30
  }
package/LICENSE DELETED
@@ -1,21 +0,0 @@
1
- MIT License
2
-
3
- Copyright (c) 2018 Khan Academy
4
-
5
- Permission is hereby granted, free of charge, to any person obtaining a copy
6
- of this software and associated documentation files (the "Software"), to deal
7
- in the Software without restriction, including without limitation the rights
8
- to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
9
- copies of the Software, and to permit persons to whom the Software is
10
- furnished to do so, subject to the following conditions:
11
-
12
- The above copyright notice and this permission notice shall be included in all
13
- copies or substantial portions of the Software.
14
-
15
- THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
16
- IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
17
- FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
18
- AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
19
- LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
20
- OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
21
- SOFTWARE.