@khanacademy/wonder-blocks-color
Advanced tools
Comparing version 1.1.8 to 1.1.9
@@ -16,16 +16,31 @@ function _defineProperty(obj, key, value) { | ||
function _objectSpread(target) { | ||
function ownKeys(object, enumerableOnly) { | ||
var keys = Object.keys(object); | ||
if (Object.getOwnPropertySymbols) { | ||
var symbols = Object.getOwnPropertySymbols(object); | ||
if (enumerableOnly) symbols = symbols.filter(function (sym) { | ||
return Object.getOwnPropertyDescriptor(object, sym).enumerable; | ||
}); | ||
keys.push.apply(keys, symbols); | ||
} | ||
return keys; | ||
} | ||
function _objectSpread2(target) { | ||
for (var i = 1; i < arguments.length; i++) { | ||
var source = arguments[i] != null ? arguments[i] : {}; | ||
var ownKeys = Object.keys(source); | ||
if (typeof Object.getOwnPropertySymbols === 'function') { | ||
ownKeys = ownKeys.concat(Object.getOwnPropertySymbols(source).filter(function (sym) { | ||
return Object.getOwnPropertyDescriptor(source, sym).enumerable; | ||
})); | ||
if (i % 2) { | ||
ownKeys(source, true).forEach(function (key) { | ||
_defineProperty(target, key, source[key]); | ||
}); | ||
} else if (Object.getOwnPropertyDescriptors) { | ||
Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)); | ||
} else { | ||
ownKeys(source).forEach(function (key) { | ||
Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key)); | ||
}); | ||
} | ||
ownKeys.forEach(function (key) { | ||
_defineProperty(target, key, source[key]); | ||
}); | ||
} | ||
@@ -112,3 +127,3 @@ | ||
var components = parse(color); | ||
return format(_objectSpread({}, components, { | ||
return format(_objectSpread2({}, components, { | ||
a: components.a * percentage | ||
@@ -162,2 +177,2 @@ })); | ||
export default Color; | ||
export { SemanticColor, mix, fade }; | ||
export { SemanticColor, fade, mix }; |
@@ -96,4 +96,6 @@ module.exports = | ||
// CONCATENATED MODULE: ./packages/wonder-blocks-color/util/utils.js | ||
function _objectSpread(target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i] != null ? arguments[i] : {}; var ownKeys = Object.keys(source); if (typeof Object.getOwnPropertySymbols === 'function') { ownKeys = ownKeys.concat(Object.getOwnPropertySymbols(source).filter(function (sym) { return Object.getOwnPropertyDescriptor(source, sym).enumerable; })); } ownKeys.forEach(function (key) { _defineProperty(target, key, source[key]); }); } return target; } | ||
function ownKeys(object, enumerableOnly) { var keys = Object.keys(object); if (Object.getOwnPropertySymbols) { var symbols = Object.getOwnPropertySymbols(object); if (enumerableOnly) symbols = symbols.filter(function (sym) { return Object.getOwnPropertyDescriptor(object, sym).enumerable; }); keys.push.apply(keys, symbols); } return keys; } | ||
function _objectSpread(target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i] != null ? arguments[i] : {}; if (i % 2) { ownKeys(source, true).forEach(function (key) { _defineProperty(target, key, source[key]); }); } else if (Object.getOwnPropertyDescriptors) { Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)); } else { ownKeys(source).forEach(function (key) { Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key)); }); } } return target; } | ||
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; } | ||
@@ -196,4 +198,4 @@ | ||
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "SemanticColor", function() { return SemanticColor; }); | ||
/* concated harmony reexport */__webpack_require__.d(__webpack_exports__, "mix", function() { return mix; }); | ||
/* concated harmony reexport */__webpack_require__.d(__webpack_exports__, "fade", function() { return fade; }); | ||
/* concated harmony reexport mix */__webpack_require__.d(__webpack_exports__, "mix", function() { return mix; }); | ||
/* concated harmony reexport fade */__webpack_require__.d(__webpack_exports__, "fade", function() { return fade; }); | ||
@@ -200,0 +202,0 @@ var offBlack = "#21242c"; |
@@ -161,3 +161,3 @@ // This file is auto-generated by gen-snapshot-tests.js | ||
}} | ||
/> | ||
></View> | ||
<Swatch | ||
@@ -164,0 +164,0 @@ color={Color.teal} |
{ | ||
"name": "@khanacademy/wonder-blocks-color", | ||
"version": "1.1.8", | ||
"version": "1.1.9", | ||
"design": "v2", | ||
@@ -16,8 +16,9 @@ "publishConfig": { | ||
"devDependencies": { | ||
"@khanacademy/wonder-blocks-core": "^2.4.2", | ||
"@khanacademy/wonder-blocks-typography": "^1.1.8", | ||
"wb-dev-build-settings": "^0.0.2" | ||
"@khanacademy/wonder-blocks-core": "^2.4.3", | ||
"@khanacademy/wonder-blocks-typography": "^1.1.9", | ||
"wb-dev-build-settings": "^0.0.3" | ||
}, | ||
"author": "", | ||
"license": "MIT" | ||
"license": "MIT", | ||
"gitHead": "be0b1f6e2cd428289f5c3e54e6a2370de2019d27" | ||
} |
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
128373
14
966