@khanacademy/wonder-blocks-progress-spinner 1.1.25 → 1.1.29

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,6 @@
1
+ # @khanacademy/wonder-blocks-progress-spinner
2
+
3
+ ## 1.1.29
4
+ ### Patch Changes
5
+
6
+ - @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 = {
@@ -25,7 +25,7 @@ const StyledPath = addStyle("path");
25
25
  * A circular progress spinner. Used for indicating loading progress. Should
26
26
  * be used by default in most places where a loading indicator is needed.
27
27
  */
28
- class CircularSpinner extends Component {
28
+ class CircularSpinner extends React.Component {
29
29
  render() {
30
30
  const {
31
31
  size,
@@ -35,19 +35,19 @@ class CircularSpinner extends Component {
35
35
  const height = heights[size];
36
36
  const path = paths[size];
37
37
  const color = light ? colors.light : colors.dark;
38
- const svg = /*#__PURE__*/createElement("svg", {
38
+ const svg = /*#__PURE__*/React.createElement("svg", {
39
39
  xmlns: "http://www.w3.org/2000/svg",
40
40
  width: height,
41
41
  height: height,
42
42
  viewBox: `0 0 ${height} ${height}`
43
- }, /*#__PURE__*/createElement(StyledPath, {
43
+ }, /*#__PURE__*/React.createElement(StyledPath, {
44
44
  style: [styles.loadingSpinner, {
45
45
  fill: color
46
46
  }],
47
47
  fillRule: "nonzero",
48
48
  d: path
49
49
  }));
50
- return /*#__PURE__*/createElement(View, {
50
+ return /*#__PURE__*/React.createElement(View, {
51
51
  style: [styles.spinnerContainer, style]
52
52
  }, svg);
53
53
  }
package/dist/index.js CHANGED
@@ -82,7 +82,7 @@ module.exports =
82
82
  /******/
83
83
  /******/
84
84
  /******/ // Load entry module and return exports
85
- /******/ return __webpack_require__(__webpack_require__.s = 4);
85
+ /******/ return __webpack_require__(__webpack_require__.s = 5);
86
86
  /******/ })
87
87
  /************************************************************************/
88
88
  /******/ ([
@@ -105,35 +105,18 @@ module.exports = require("@khanacademy/wonder-blocks-color");
105
105
 
106
106
  /***/ }),
107
107
  /* 3 */
108
- /***/ (function(module, exports) {
109
-
110
- module.exports = require("aphrodite");
111
-
112
- /***/ }),
113
- /* 4 */
114
108
  /***/ (function(module, __webpack_exports__, __webpack_require__) {
115
109
 
116
110
  "use strict";
117
- // ESM COMPAT FLAG
118
- __webpack_require__.r(__webpack_exports__);
119
-
120
- // EXPORTS
121
- __webpack_require__.d(__webpack_exports__, "CircularSpinner", function() { return /* reexport */ circular_spinner_CircularSpinner; });
122
-
123
- // EXTERNAL MODULE: external "react"
124
- var external_react_ = __webpack_require__(0);
125
-
126
- // EXTERNAL MODULE: external "aphrodite"
127
- var external_aphrodite_ = __webpack_require__(3);
128
-
129
- // EXTERNAL MODULE: external "@khanacademy/wonder-blocks-core"
130
- var wonder_blocks_core_ = __webpack_require__(1);
131
-
132
- // EXTERNAL MODULE: external "@khanacademy/wonder-blocks-color"
133
- var wonder_blocks_color_ = __webpack_require__(2);
134
- var wonder_blocks_color_default = /*#__PURE__*/__webpack_require__.n(wonder_blocks_color_);
135
-
136
- // CONCATENATED MODULE: ./packages/wonder-blocks-progress-spinner/src/components/circular-spinner.js
111
+ /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "a", function() { return CircularSpinner; });
112
+ /* harmony import */ var react__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(0);
113
+ /* harmony import */ var react__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(react__WEBPACK_IMPORTED_MODULE_0__);
114
+ /* harmony import */ var aphrodite__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(4);
115
+ /* harmony import */ var aphrodite__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(aphrodite__WEBPACK_IMPORTED_MODULE_1__);
116
+ /* harmony import */ var _khanacademy_wonder_blocks_core__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(1);
117
+ /* harmony import */ var _khanacademy_wonder_blocks_core__WEBPACK_IMPORTED_MODULE_2___default = /*#__PURE__*/__webpack_require__.n(_khanacademy_wonder_blocks_core__WEBPACK_IMPORTED_MODULE_2__);
118
+ /* harmony import */ var _khanacademy_wonder_blocks_color__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(2);
119
+ /* harmony import */ var _khanacademy_wonder_blocks_color__WEBPACK_IMPORTED_MODULE_3___default = /*#__PURE__*/__webpack_require__.n(_khanacademy_wonder_blocks_color__WEBPACK_IMPORTED_MODULE_3__);
137
120
 
138
121
 
139
122
 
@@ -151,16 +134,16 @@ const paths = {
151
134
  large: "M88.38 46.91a3.818 3.818 0 1 1 7.602 0h.006c.008.362.012.725.012 1.09 0 26.51-21.49 48-48 48S0 74.51 0 48 21.49 0 48 0c.365 0 .728.004 1.09.012v.005a3.818 3.818 0 1 1 0 7.602v.032c-.362-.01-.725-.015-1.09-.015C25.708 7.636 7.636 25.708 7.636 48c0 22.292 18.072 40.364 40.364 40.364 22.292 0 40.364-18.072 40.364-40.364 0-.365-.005-.728-.015-1.09h.032z"
152
135
  };
153
136
  const colors = {
154
- light: wonder_blocks_color_default.a.white,
155
- dark: wonder_blocks_color_default.a.offBlack16
137
+ light: _khanacademy_wonder_blocks_color__WEBPACK_IMPORTED_MODULE_3___default.a.white,
138
+ dark: _khanacademy_wonder_blocks_color__WEBPACK_IMPORTED_MODULE_3___default.a.offBlack16
156
139
  };
157
- const StyledPath = Object(wonder_blocks_core_["addStyle"])("path");
140
+ const StyledPath = Object(_khanacademy_wonder_blocks_core__WEBPACK_IMPORTED_MODULE_2__["addStyle"])("path");
158
141
 
159
142
  /**
160
143
  * A circular progress spinner. Used for indicating loading progress. Should
161
144
  * be used by default in most places where a loading indicator is needed.
162
145
  */
163
- class circular_spinner_CircularSpinner extends external_react_["Component"] {
146
+ class CircularSpinner extends react__WEBPACK_IMPORTED_MODULE_0__["Component"] {
164
147
  render() {
165
148
  const {
166
149
  size,
@@ -170,25 +153,25 @@ class circular_spinner_CircularSpinner extends external_react_["Component"] {
170
153
  const height = heights[size];
171
154
  const path = paths[size];
172
155
  const color = light ? colors.light : colors.dark;
173
- const svg = /*#__PURE__*/external_react_["createElement"]("svg", {
156
+ const svg = /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0__["createElement"]("svg", {
174
157
  xmlns: "http://www.w3.org/2000/svg",
175
158
  width: height,
176
159
  height: height,
177
160
  viewBox: `0 0 ${height} ${height}`
178
- }, /*#__PURE__*/external_react_["createElement"](StyledPath, {
161
+ }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0__["createElement"](StyledPath, {
179
162
  style: [styles.loadingSpinner, {
180
163
  fill: color
181
164
  }],
182
165
  fillRule: "nonzero",
183
166
  d: path
184
167
  }));
185
- return /*#__PURE__*/external_react_["createElement"](wonder_blocks_core_["View"], {
168
+ return /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0__["createElement"](_khanacademy_wonder_blocks_core__WEBPACK_IMPORTED_MODULE_2__["View"], {
186
169
  style: [styles.spinnerContainer, style]
187
170
  }, svg);
188
171
  }
189
172
 
190
173
  }
191
- circular_spinner_CircularSpinner.defaultProps = {
174
+ CircularSpinner.defaultProps = {
192
175
  size: "large",
193
176
  light: false
194
177
  };
@@ -203,7 +186,7 @@ const rotateKeyFrames = {
203
186
  transform: "rotate(360deg)"
204
187
  }
205
188
  };
206
- const styles = external_aphrodite_["StyleSheet"].create({
189
+ const styles = aphrodite__WEBPACK_IMPORTED_MODULE_1__["StyleSheet"].create({
207
190
  spinnerContainer: {
208
191
  justifyContent: "center"
209
192
  },
@@ -215,7 +198,22 @@ const styles = external_aphrodite_["StyleSheet"].create({
215
198
  animationTimingFunction: "linear"
216
199
  }
217
200
  });
218
- // CONCATENATED MODULE: ./packages/wonder-blocks-progress-spinner/src/index.js
201
+
202
+ /***/ }),
203
+ /* 4 */
204
+ /***/ (function(module, exports) {
205
+
206
+ module.exports = require("aphrodite");
207
+
208
+ /***/ }),
209
+ /* 5 */
210
+ /***/ (function(module, __webpack_exports__, __webpack_require__) {
211
+
212
+ "use strict";
213
+ __webpack_require__.r(__webpack_exports__);
214
+ /* harmony import */ var _components_circular_spinner_js__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(3);
215
+ /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "CircularSpinner", function() { return _components_circular_spinner_js__WEBPACK_IMPORTED_MODULE_0__["a"]; });
216
+
219
217
 
220
218
 
221
219
  /***/ })
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@khanacademy/wonder-blocks-progress-spinner",
3
- "version": "1.1.25",
3
+ "version": "1.1.29",
4
4
  "design": "v1",
5
5
  "publishConfig": {
6
6
  "access": "public"
@@ -15,17 +15,16 @@
15
15
  "author": "",
16
16
  "license": "MIT",
17
17
  "dependencies": {
18
- "@babel/runtime": "^7.13.10",
19
- "@khanacademy/wonder-blocks-color": "^1.1.18",
20
- "@khanacademy/wonder-blocks-core": "^3.1.4",
21
- "@khanacademy/wonder-blocks-spacing": "^3.0.3"
18
+ "@babel/runtime": "^7.16.3",
19
+ "@khanacademy/wonder-blocks-color": "^1.1.20",
20
+ "@khanacademy/wonder-blocks-core": "^4.2.1",
21
+ "@khanacademy/wonder-blocks-spacing": "^3.0.5"
22
22
  },
23
23
  "peerDependencies": {
24
24
  "aphrodite": "^1.2.5",
25
- "react": "^16.4.1"
25
+ "react": "16.14.0"
26
26
  },
27
27
  "devDependencies": {
28
- "wb-dev-build-settings": "^0.1.0"
29
- },
30
- "gitHead": "8022bb419eed74be37f71f71c7621854794a731c"
28
+ "wb-dev-build-settings": "^0.3.0"
29
+ }
31
30
  }
@@ -14,14 +14,10 @@ const heights = {
14
14
  };
15
15
 
16
16
  const paths = {
17
- xsmall:
18
- "M7.237.741C7.165.393 6.95.154 6.656.053A1.01 1.01 0 0 0 6.18.01c-.053.009-.053.009-.087.017C2.553.949 0 4.214 0 7.91 0 12.36 3.598 16 8 16c4.4 0 8-3.647 8-8.112a1.02 1.02 0 0 0-.118-.423.877.877 0 0 0-.808-.48.909.909 0 0 0-.81.46c-.09.151-.13.296-.146.455-.08 3.493-2.737 6.207-6.118 6.207-3.41 0-6.118-2.74-6.118-6.196 0-2.843 1.936-5.291 4.644-6.022.1-.028.224-.082.352-.177a.928.928 0 0 0 .36-.97z",
19
- small:
20
- "M10.598.943c-.093-.449-.362-.748-.732-.875a1.314 1.314 0 0 0-.723-.033C3.83 1.417 0 6.317 0 11.864 0 18.538 5.398 24 12 24c6.598 0 12-5.471 12-12.16a1.333 1.333 0 0 0-.154-.548c-.193-.368-.544-.606-1.023-.606-.472 0-.825.229-1.035.585-.117.2-.169.39-.189.582-.124 5.472-4.294 9.73-9.599 9.73-5.349 0-9.599-4.3-9.599-9.72 0-4.46 3.036-8.299 7.28-9.444.127-.036.291-.107.458-.232.373-.28.57-.711.46-1.244z",
21
- medium:
22
- "M44.19 23.455a1.91 1.91 0 1 1 3.801 0h.003c.004.18.006.363.006.545 0 13.255-10.745 24-24 24S0 37.255 0 24 10.745 0 24 0c.182 0 .364.002.545.006V.01a1.91 1.91 0 1 1 0 3.801v.015A20.564 20.564 0 0 0 24 3.818C12.854 3.818 3.818 12.854 3.818 24c0 11.146 9.036 20.182 20.182 20.182 11.146 0 20.182-9.036 20.182-20.182 0-.182-.003-.364-.007-.545h.015z",
23
- large:
24
- "M88.38 46.91a3.818 3.818 0 1 1 7.602 0h.006c.008.362.012.725.012 1.09 0 26.51-21.49 48-48 48S0 74.51 0 48 21.49 0 48 0c.365 0 .728.004 1.09.012v.005a3.818 3.818 0 1 1 0 7.602v.032c-.362-.01-.725-.015-1.09-.015C25.708 7.636 7.636 25.708 7.636 48c0 22.292 18.072 40.364 40.364 40.364 22.292 0 40.364-18.072 40.364-40.364 0-.365-.005-.728-.015-1.09h.032z",
17
+ xsmall: "M7.237.741C7.165.393 6.95.154 6.656.053A1.01 1.01 0 0 0 6.18.01c-.053.009-.053.009-.087.017C2.553.949 0 4.214 0 7.91 0 12.36 3.598 16 8 16c4.4 0 8-3.647 8-8.112a1.02 1.02 0 0 0-.118-.423.877.877 0 0 0-.808-.48.909.909 0 0 0-.81.46c-.09.151-.13.296-.146.455-.08 3.493-2.737 6.207-6.118 6.207-3.41 0-6.118-2.74-6.118-6.196 0-2.843 1.936-5.291 4.644-6.022.1-.028.224-.082.352-.177a.928.928 0 0 0 .36-.97z",
18
+ small: "M10.598.943c-.093-.449-.362-.748-.732-.875a1.314 1.314 0 0 0-.723-.033C3.83 1.417 0 6.317 0 11.864 0 18.538 5.398 24 12 24c6.598 0 12-5.471 12-12.16a1.333 1.333 0 0 0-.154-.548c-.193-.368-.544-.606-1.023-.606-.472 0-.825.229-1.035.585-.117.2-.169.39-.189.582-.124 5.472-4.294 9.73-9.599 9.73-5.349 0-9.599-4.3-9.599-9.72 0-4.46 3.036-8.299 7.28-9.444.127-.036.291-.107.458-.232.373-.28.57-.711.46-1.244z",
19
+ medium: "M44.19 23.455a1.91 1.91 0 1 1 3.801 0h.003c.004.18.006.363.006.545 0 13.255-10.745 24-24 24S0 37.255 0 24 10.745 0 24 0c.182 0 .364.002.545.006V.01a1.91 1.91 0 1 1 0 3.801v.015A20.564 20.564 0 0 0 24 3.818C12.854 3.818 3.818 12.854 3.818 24c0 11.146 9.036 20.182 20.182 20.182 11.146 0 20.182-9.036 20.182-20.182 0-.182-.003-.364-.007-.545h.015z",
20
+ large: "M88.38 46.91a3.818 3.818 0 1 1 7.602 0h.006c.008.362.012.725.012 1.09 0 26.51-21.49 48-48 48S0 74.51 0 48 21.49 0 48 0c.365 0 .728.004 1.09.012v.005a3.818 3.818 0 1 1 0 7.602v.032c-.362-.01-.725-.015-1.09-.015C25.708 7.636 7.636 25.708 7.636 48c0 22.292 18.072 40.364 40.364 40.364 22.292 0 40.364-18.072 40.364-40.364 0-.365-.005-.728-.015-1.09h.032z",
25
21
  };
26
22
 
27
23
  const colors = {
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.