@khanacademy/wonder-blocks-progress-spinner
Advanced tools
Comparing version 1.1.25 to 1.1.26
@@ -85,3 +85,3 @@ module.exports = | ||
/******/ // Load entry module and return exports | ||
/******/ return __webpack_require__(__webpack_require__.s = 4); | ||
/******/ return __webpack_require__(__webpack_require__.s = 5); | ||
/******/ }) | ||
@@ -109,35 +109,18 @@ /************************************************************************/ | ||
/* 3 */ | ||
/***/ (function(module, exports) { | ||
module.exports = require("aphrodite"); | ||
/***/ }), | ||
/* 4 */ | ||
/***/ (function(module, __webpack_exports__, __webpack_require__) { | ||
"use strict"; | ||
// ESM COMPAT FLAG | ||
__webpack_require__.r(__webpack_exports__); | ||
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "a", function() { return CircularSpinner; }); | ||
/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(0); | ||
/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(react__WEBPACK_IMPORTED_MODULE_0__); | ||
/* harmony import */ var aphrodite__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(4); | ||
/* harmony import */ var aphrodite__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(aphrodite__WEBPACK_IMPORTED_MODULE_1__); | ||
/* harmony import */ var _khanacademy_wonder_blocks_core__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(1); | ||
/* harmony import */ var _khanacademy_wonder_blocks_core__WEBPACK_IMPORTED_MODULE_2___default = /*#__PURE__*/__webpack_require__.n(_khanacademy_wonder_blocks_core__WEBPACK_IMPORTED_MODULE_2__); | ||
/* harmony import */ var _khanacademy_wonder_blocks_color__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(2); | ||
/* harmony import */ var _khanacademy_wonder_blocks_color__WEBPACK_IMPORTED_MODULE_3___default = /*#__PURE__*/__webpack_require__.n(_khanacademy_wonder_blocks_color__WEBPACK_IMPORTED_MODULE_3__); | ||
// EXPORTS | ||
__webpack_require__.d(__webpack_exports__, "CircularSpinner", function() { return /* reexport */ circular_spinner_CircularSpinner; }); | ||
// EXTERNAL MODULE: external "react" | ||
var external_react_ = __webpack_require__(0); | ||
// EXTERNAL MODULE: external "aphrodite" | ||
var external_aphrodite_ = __webpack_require__(3); | ||
// EXTERNAL MODULE: external "@khanacademy/wonder-blocks-core" | ||
var wonder_blocks_core_ = __webpack_require__(1); | ||
// EXTERNAL MODULE: external "@khanacademy/wonder-blocks-color" | ||
var wonder_blocks_color_ = __webpack_require__(2); | ||
var wonder_blocks_color_default = /*#__PURE__*/__webpack_require__.n(wonder_blocks_color_); | ||
// CONCATENATED MODULE: ./packages/wonder-blocks-progress-spinner/src/components/circular-spinner.js | ||
const heights = { | ||
@@ -156,6 +139,6 @@ xsmall: 16, | ||
const colors = { | ||
light: wonder_blocks_color_default.a.white, | ||
dark: wonder_blocks_color_default.a.offBlack16 | ||
light: _khanacademy_wonder_blocks_color__WEBPACK_IMPORTED_MODULE_3___default.a.white, | ||
dark: _khanacademy_wonder_blocks_color__WEBPACK_IMPORTED_MODULE_3___default.a.offBlack16 | ||
}; | ||
const StyledPath = Object(wonder_blocks_core_["addStyle"])("path"); | ||
const StyledPath = Object(_khanacademy_wonder_blocks_core__WEBPACK_IMPORTED_MODULE_2__["addStyle"])("path"); | ||
@@ -166,3 +149,3 @@ /** | ||
*/ | ||
class circular_spinner_CircularSpinner extends external_react_["Component"] { | ||
class CircularSpinner extends react__WEBPACK_IMPORTED_MODULE_0__["Component"] { | ||
render() { | ||
@@ -177,3 +160,3 @@ const { | ||
const color = light ? colors.light : colors.dark; | ||
const svg = /*#__PURE__*/external_react_["createElement"]("svg", { | ||
const svg = /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0__["createElement"]("svg", { | ||
xmlns: "http://www.w3.org/2000/svg", | ||
@@ -183,3 +166,3 @@ width: height, | ||
viewBox: `0 0 ${height} ${height}` | ||
}, /*#__PURE__*/external_react_["createElement"](StyledPath, { | ||
}, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0__["createElement"](StyledPath, { | ||
style: [styles.loadingSpinner, { | ||
@@ -191,3 +174,3 @@ fill: color | ||
})); | ||
return /*#__PURE__*/external_react_["createElement"](wonder_blocks_core_["View"], { | ||
return /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0__["createElement"](_khanacademy_wonder_blocks_core__WEBPACK_IMPORTED_MODULE_2__["View"], { | ||
style: [styles.spinnerContainer, style] | ||
@@ -198,3 +181,3 @@ }, svg); | ||
} | ||
circular_spinner_CircularSpinner.defaultProps = { | ||
CircularSpinner.defaultProps = { | ||
size: "large", | ||
@@ -214,3 +197,3 @@ light: false | ||
}; | ||
const styles = external_aphrodite_["StyleSheet"].create({ | ||
const styles = aphrodite__WEBPACK_IMPORTED_MODULE_1__["StyleSheet"].create({ | ||
spinnerContainer: { | ||
@@ -227,6 +210,21 @@ justifyContent: "center" | ||
}); | ||
// CONCATENATED MODULE: ./packages/wonder-blocks-progress-spinner/src/index.js | ||
/***/ }), | ||
/* 4 */ | ||
/***/ (function(module, exports) { | ||
module.exports = require("aphrodite"); | ||
/***/ }), | ||
/* 5 */ | ||
/***/ (function(module, __webpack_exports__, __webpack_require__) { | ||
"use strict"; | ||
__webpack_require__.r(__webpack_exports__); | ||
/* harmony import */ var _components_circular_spinner_js__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(3); | ||
/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "CircularSpinner", function() { return _components_circular_spinner_js__WEBPACK_IMPORTED_MODULE_0__["a"]; }); | ||
/***/ }) | ||
/******/ ]); |
{ | ||
"name": "@khanacademy/wonder-blocks-progress-spinner", | ||
"version": "1.1.25", | ||
"version": "1.1.26", | ||
"design": "v1", | ||
@@ -19,5 +19,5 @@ "publishConfig": { | ||
"@babel/runtime": "^7.13.10", | ||
"@khanacademy/wonder-blocks-color": "^1.1.18", | ||
"@khanacademy/wonder-blocks-core": "^3.1.4", | ||
"@khanacademy/wonder-blocks-spacing": "^3.0.3" | ||
"@khanacademy/wonder-blocks-color": "^1.1.19", | ||
"@khanacademy/wonder-blocks-core": "^3.1.5", | ||
"@khanacademy/wonder-blocks-spacing": "^3.0.4" | ||
}, | ||
@@ -29,5 +29,5 @@ "peerDependencies": { | ||
"devDependencies": { | ||
"wb-dev-build-settings": "^0.1.0" | ||
"wb-dev-build-settings": "^0.1.2" | ||
}, | ||
"gitHead": "8022bb419eed74be37f71f71c7621854794a731c" | ||
"gitHead": "9a9cc04bf2bbfb425f991a347b4f8b0d0d56e120" | ||
} |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
52153
490