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

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/dist/es/index.js CHANGED
@@ -1,193 +1,63 @@
1
- import { createElement, Component } from 'react';
1
+ import { Component, createElement } from 'react';
2
2
  import { StyleSheet } from 'aphrodite';
3
- import { addStyle, View } from '@khanacademy/wonder-blocks-core';
3
+ import { View, addStyle } from '@khanacademy/wonder-blocks-core';
4
4
  import Color from '@khanacademy/wonder-blocks-color';
5
5
 
6
- function _classCallCheck(instance, Constructor) {
7
- if (!(instance instanceof Constructor)) {
8
- throw new TypeError("Cannot call a class as a function");
9
- }
10
- }
11
-
12
- function _defineProperties(target, props) {
13
- for (var i = 0; i < props.length; i++) {
14
- var descriptor = props[i];
15
- descriptor.enumerable = descriptor.enumerable || false;
16
- descriptor.configurable = true;
17
- if ("value" in descriptor) descriptor.writable = true;
18
- Object.defineProperty(target, descriptor.key, descriptor);
19
- }
20
- }
21
-
22
- function _createClass(Constructor, protoProps, staticProps) {
23
- if (protoProps) _defineProperties(Constructor.prototype, protoProps);
24
- if (staticProps) _defineProperties(Constructor, staticProps);
25
- return Constructor;
26
- }
27
-
28
- function _defineProperty(obj, key, value) {
29
- if (key in obj) {
30
- Object.defineProperty(obj, key, {
31
- value: value,
32
- enumerable: true,
33
- configurable: true,
34
- writable: true
35
- });
36
- } else {
37
- obj[key] = value;
38
- }
39
-
40
- return obj;
41
- }
42
-
43
- function _inherits(subClass, superClass) {
44
- if (typeof superClass !== "function" && superClass !== null) {
45
- throw new TypeError("Super expression must either be null or a function");
46
- }
47
-
48
- subClass.prototype = Object.create(superClass && superClass.prototype, {
49
- constructor: {
50
- value: subClass,
51
- writable: true,
52
- configurable: true
53
- }
54
- });
55
- if (superClass) _setPrototypeOf(subClass, superClass);
56
- }
57
-
58
- function _getPrototypeOf(o) {
59
- _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf : function _getPrototypeOf(o) {
60
- return o.__proto__ || Object.getPrototypeOf(o);
61
- };
62
- return _getPrototypeOf(o);
63
- }
64
-
65
- function _setPrototypeOf(o, p) {
66
- _setPrototypeOf = Object.setPrototypeOf || function _setPrototypeOf(o, p) {
67
- o.__proto__ = p;
68
- return o;
69
- };
70
-
71
- return _setPrototypeOf(o, p);
72
- }
73
-
74
- function _isNativeReflectConstruct() {
75
- if (typeof Reflect === "undefined" || !Reflect.construct) return false;
76
- if (Reflect.construct.sham) return false;
77
- if (typeof Proxy === "function") return true;
78
-
79
- try {
80
- Date.prototype.toString.call(Reflect.construct(Date, [], function () {}));
81
- return true;
82
- } catch (e) {
83
- return false;
84
- }
85
- }
86
-
87
- function _assertThisInitialized(self) {
88
- if (self === void 0) {
89
- throw new ReferenceError("this hasn't been initialised - super() hasn't been called");
90
- }
91
-
92
- return self;
93
- }
94
-
95
- function _possibleConstructorReturn(self, call) {
96
- if (call && (typeof call === "object" || typeof call === "function")) {
97
- return call;
98
- }
99
-
100
- return _assertThisInitialized(self);
101
- }
102
-
103
- function _createSuper(Derived) {
104
- var hasNativeReflectConstruct = _isNativeReflectConstruct();
105
-
106
- return function _createSuperInternal() {
107
- var Super = _getPrototypeOf(Derived),
108
- result;
109
-
110
- if (hasNativeReflectConstruct) {
111
- var NewTarget = _getPrototypeOf(this).constructor;
112
-
113
- result = Reflect.construct(Super, arguments, NewTarget);
114
- } else {
115
- result = Super.apply(this, arguments);
116
- }
117
-
118
- return _possibleConstructorReturn(this, result);
119
- };
120
- }
121
-
122
- var heights = {
6
+ const heights = {
123
7
  xsmall: 16,
124
8
  small: 24,
125
9
  medium: 48,
126
10
  large: 96
127
11
  };
128
- var paths = {
12
+ const paths = {
129
13
  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",
130
14
  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",
131
15
  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",
132
16
  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"
133
17
  };
134
- var colors = {
18
+ const colors = {
135
19
  light: Color.white,
136
20
  dark: Color.offBlack16
137
21
  };
138
- var StyledPath = addStyle("path");
22
+ const StyledPath = addStyle("path");
139
23
 
140
24
  /**
141
25
  * A circular progress spinner. Used for indicating loading progress. Should
142
26
  * be used by default in most places where a loading indicator is needed.
143
27
  */
144
- var CircularSpinner = /*#__PURE__*/function (_React$Component) {
145
- _inherits(CircularSpinner, _React$Component);
146
-
147
- var _super = _createSuper(CircularSpinner);
148
-
149
- function CircularSpinner() {
150
- _classCallCheck(this, CircularSpinner);
151
-
152
- return _super.apply(this, arguments);
28
+ class CircularSpinner extends Component {
29
+ render() {
30
+ const {
31
+ size,
32
+ light,
33
+ style
34
+ } = this.props;
35
+ const height = heights[size];
36
+ const path = paths[size];
37
+ const color = light ? colors.light : colors.dark;
38
+ const svg = /*#__PURE__*/createElement("svg", {
39
+ xmlns: "http://www.w3.org/2000/svg",
40
+ width: height,
41
+ height: height,
42
+ viewBox: `0 0 ${height} ${height}`
43
+ }, /*#__PURE__*/createElement(StyledPath, {
44
+ style: [styles.loadingSpinner, {
45
+ fill: color
46
+ }],
47
+ fillRule: "nonzero",
48
+ d: path
49
+ }));
50
+ return /*#__PURE__*/createElement(View, {
51
+ style: [styles.spinnerContainer, style]
52
+ }, svg);
153
53
  }
154
54
 
155
- _createClass(CircularSpinner, [{
156
- key: "render",
157
- value: function render() {
158
- var _this$props = this.props,
159
- size = _this$props.size,
160
- light = _this$props.light,
161
- style = _this$props.style;
162
- var height = heights[size];
163
- var path = paths[size];
164
- var color = light ? colors.light : colors.dark;
165
- var svg = /*#__PURE__*/createElement("svg", {
166
- xmlns: "http://www.w3.org/2000/svg",
167
- width: height,
168
- height: height,
169
- viewBox: "0 0 ".concat(height, " ").concat(height)
170
- }, /*#__PURE__*/createElement(StyledPath, {
171
- style: [styles.loadingSpinner, {
172
- fill: color
173
- }],
174
- fillRule: "nonzero",
175
- d: path
176
- }));
177
- return /*#__PURE__*/createElement(View, {
178
- style: [styles.spinnerContainer, style]
179
- }, svg);
180
- }
181
- }]);
182
-
183
- return CircularSpinner;
184
- }(Component);
185
-
186
- _defineProperty(CircularSpinner, "defaultProps", {
55
+ }
56
+ CircularSpinner.defaultProps = {
187
57
  size: "large",
188
58
  light: false
189
- });
190
- var rotateKeyFrames = {
59
+ };
60
+ const rotateKeyFrames = {
191
61
  "0%": {
192
62
  transform: "rotate(0deg)"
193
63
  },
@@ -198,7 +68,7 @@ var rotateKeyFrames = {
198
68
  transform: "rotate(360deg)"
199
69
  }
200
70
  };
201
- var styles = StyleSheet.create({
71
+ const styles = StyleSheet.create({
202
72
  spinnerContainer: {
203
73
  justifyContent: "center"
204
74
  },
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,134 +105,77 @@ 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
137
- function _typeof(obj) { "@babel/helpers - typeof"; if (typeof Symbol === "function" && typeof Symbol.iterator === "symbol") { _typeof = function _typeof(obj) { return typeof obj; }; } else { _typeof = function _typeof(obj) { return obj && typeof Symbol === "function" && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj; }; } return _typeof(obj); }
138
-
139
- function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } }
140
-
141
- function _defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } }
142
-
143
- function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; }
144
-
145
- function _inherits(subClass, superClass) { if (typeof superClass !== "function" && superClass !== null) { throw new TypeError("Super expression must either be null or a function"); } subClass.prototype = Object.create(superClass && superClass.prototype, { constructor: { value: subClass, writable: true, configurable: true } }); if (superClass) _setPrototypeOf(subClass, superClass); }
146
-
147
- function _setPrototypeOf(o, p) { _setPrototypeOf = Object.setPrototypeOf || function _setPrototypeOf(o, p) { o.__proto__ = p; return o; }; return _setPrototypeOf(o, p); }
148
-
149
- function _createSuper(Derived) { var hasNativeReflectConstruct = _isNativeReflectConstruct(); return function _createSuperInternal() { var Super = _getPrototypeOf(Derived), result; if (hasNativeReflectConstruct) { var NewTarget = _getPrototypeOf(this).constructor; result = Reflect.construct(Super, arguments, NewTarget); } else { result = Super.apply(this, arguments); } return _possibleConstructorReturn(this, result); }; }
150
-
151
- function _possibleConstructorReturn(self, call) { if (call && (_typeof(call) === "object" || typeof call === "function")) { return call; } return _assertThisInitialized(self); }
152
-
153
- function _assertThisInitialized(self) { if (self === void 0) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return self; }
154
-
155
- function _isNativeReflectConstruct() { if (typeof Reflect === "undefined" || !Reflect.construct) return false; if (Reflect.construct.sham) return false; if (typeof Proxy === "function") return true; try { Date.prototype.toString.call(Reflect.construct(Date, [], function () {})); return true; } catch (e) { return false; } }
156
-
157
- function _getPrototypeOf(o) { _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf : function _getPrototypeOf(o) { return o.__proto__ || Object.getPrototypeOf(o); }; return _getPrototypeOf(o); }
158
-
159
- function _defineProperty(obj, key, value) { if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; }
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__);
160
120
 
161
121
 
162
122
 
163
123
 
164
-
165
- var heights = {
124
+ const heights = {
166
125
  xsmall: 16,
167
126
  small: 24,
168
127
  medium: 48,
169
128
  large: 96
170
129
  };
171
- var paths = {
130
+ const paths = {
172
131
  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",
173
132
  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",
174
133
  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",
175
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"
176
135
  };
177
- var colors = {
178
- light: wonder_blocks_color_default.a.white,
179
- dark: wonder_blocks_color_default.a.offBlack16
136
+ const colors = {
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
180
139
  };
181
- var StyledPath = Object(wonder_blocks_core_["addStyle"])("path");
140
+ const StyledPath = Object(_khanacademy_wonder_blocks_core__WEBPACK_IMPORTED_MODULE_2__["addStyle"])("path");
182
141
 
183
142
  /**
184
143
  * A circular progress spinner. Used for indicating loading progress. Should
185
144
  * be used by default in most places where a loading indicator is needed.
186
145
  */
187
- var circular_spinner_CircularSpinner = /*#__PURE__*/function (_React$Component) {
188
- _inherits(CircularSpinner, _React$Component);
189
-
190
- var _super = _createSuper(CircularSpinner);
191
-
192
- function CircularSpinner() {
193
- _classCallCheck(this, CircularSpinner);
194
-
195
- return _super.apply(this, arguments);
146
+ class CircularSpinner extends react__WEBPACK_IMPORTED_MODULE_0__["Component"] {
147
+ render() {
148
+ const {
149
+ size,
150
+ light,
151
+ style
152
+ } = this.props;
153
+ const height = heights[size];
154
+ const path = paths[size];
155
+ const color = light ? colors.light : colors.dark;
156
+ const svg = /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0__["createElement"]("svg", {
157
+ xmlns: "http://www.w3.org/2000/svg",
158
+ width: height,
159
+ height: height,
160
+ viewBox: `0 0 ${height} ${height}`
161
+ }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0__["createElement"](StyledPath, {
162
+ style: [styles.loadingSpinner, {
163
+ fill: color
164
+ }],
165
+ fillRule: "nonzero",
166
+ d: path
167
+ }));
168
+ return /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0__["createElement"](_khanacademy_wonder_blocks_core__WEBPACK_IMPORTED_MODULE_2__["View"], {
169
+ style: [styles.spinnerContainer, style]
170
+ }, svg);
196
171
  }
197
172
 
198
- _createClass(CircularSpinner, [{
199
- key: "render",
200
- value: function render() {
201
- var _this$props = this.props,
202
- size = _this$props.size,
203
- light = _this$props.light,
204
- style = _this$props.style;
205
- var height = heights[size];
206
- var path = paths[size];
207
- var color = light ? colors.light : colors.dark;
208
- var svg = /*#__PURE__*/external_react_["createElement"]("svg", {
209
- xmlns: "http://www.w3.org/2000/svg",
210
- width: height,
211
- height: height,
212
- viewBox: "0 0 ".concat(height, " ").concat(height)
213
- }, /*#__PURE__*/external_react_["createElement"](StyledPath, {
214
- style: [styles.loadingSpinner, {
215
- fill: color
216
- }],
217
- fillRule: "nonzero",
218
- d: path
219
- }));
220
- return /*#__PURE__*/external_react_["createElement"](wonder_blocks_core_["View"], {
221
- style: [styles.spinnerContainer, style]
222
- }, svg);
223
- }
224
- }]);
225
-
226
- return CircularSpinner;
227
- }(external_react_["Component"]);
228
-
229
- _defineProperty(circular_spinner_CircularSpinner, "defaultProps", {
173
+ }
174
+ CircularSpinner.defaultProps = {
230
175
  size: "large",
231
176
  light: false
232
- });
233
-
234
-
235
- var rotateKeyFrames = {
177
+ };
178
+ const rotateKeyFrames = {
236
179
  "0%": {
237
180
  transform: "rotate(0deg)"
238
181
  },
@@ -243,7 +186,7 @@ var rotateKeyFrames = {
243
186
  transform: "rotate(360deg)"
244
187
  }
245
188
  };
246
- var styles = external_aphrodite_["StyleSheet"].create({
189
+ const styles = aphrodite__WEBPACK_IMPORTED_MODULE_1__["StyleSheet"].create({
247
190
  spinnerContainer: {
248
191
  justifyContent: "center"
249
192
  },
@@ -255,7 +198,22 @@ var styles = external_aphrodite_["StyleSheet"].create({
255
198
  animationTimingFunction: "linear"
256
199
  }
257
200
  });
258
- // 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
+
259
217
 
260
218
 
261
219
  /***/ })
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@khanacademy/wonder-blocks-progress-spinner",
3
- "version": "1.1.24",
3
+ "version": "1.1.28",
4
4
  "design": "v1",
5
5
  "publishConfig": {
6
6
  "access": "public"
@@ -15,16 +15,17 @@
15
15
  "author": "",
16
16
  "license": "MIT",
17
17
  "dependencies": {
18
- "@khanacademy/wonder-blocks-color": "^1.1.17",
19
- "@khanacademy/wonder-blocks-core": "^3.1.3",
20
- "@khanacademy/wonder-blocks-spacing": "^3.0.2"
18
+ "@babel/runtime": "^7.16.3",
19
+ "@khanacademy/wonder-blocks-color": "^1.1.20",
20
+ "@khanacademy/wonder-blocks-core": "^4.0.0",
21
+ "@khanacademy/wonder-blocks-spacing": "^3.0.5"
21
22
  },
22
23
  "peerDependencies": {
23
24
  "aphrodite": "^1.2.5",
24
- "react": "^16.4.1"
25
+ "react": "16.14.0"
25
26
  },
26
27
  "devDependencies": {
27
- "wb-dev-build-settings": "^0.0.4"
28
+ "wb-dev-build-settings": "^0.2.0"
28
29
  },
29
- "gitHead": "b7d7425c7f2e02cd9b9ac6ac7e9fe12ead2bd8ab"
30
+ "gitHead": "9ebea88533e702011165072f090a377e02fa3f0f"
30
31
  }
@@ -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 = {
@@ -1,13 +0,0 @@
1
- // @flow
2
- describe("@khanacademy/wonder-blocks-progress-spinner", () => {
3
- test("package exports default", async () => {
4
- // Arrange
5
- const importedModule = import("../index.js");
6
-
7
- // Act
8
- const result = await importedModule;
9
-
10
- // Assert
11
- expect(Object.keys(result).sort()).toEqual(["CircularSpinner"].sort());
12
- });
13
- });