Comparing version 0.2.2 to 0.2.3
@@ -6,3 +6,3 @@ 'use strict'; | ||
}); | ||
exports.reverseColor = exports.color = exports.font = exports.reverse = exports.getColor = exports.get = exports.ifProps = undefined; | ||
exports.reverseColor = exports.color = exports.font = exports.key = exports.reverse = exports.getColor = exports.get = exports.ifProps = undefined; | ||
@@ -88,2 +88,9 @@ var _extends = Object.assign || function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; | ||
var key = exports.key = function key(path) { | ||
return function () { | ||
var props = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : {}; | ||
return get(path, props.theme); | ||
}; | ||
}; | ||
var font = exports.font = function font(path) { | ||
@@ -90,0 +97,0 @@ return function () { |
{ | ||
"name": "arc-theme", | ||
"version": "0.2.2", | ||
"version": "0.2.3", | ||
"description": "ARc theming utilities and resources", | ||
@@ -5,0 +5,0 @@ "license": "MIT", |
@@ -121,2 +121,8 @@ # arc-theme | ||
### key(path: String)(props: Object) | ||
Returns the key in `props.theme[path]` or `theme[path]`. | ||
This is the same as `get(path, props.theme)`. | ||
### font(path: String)(props: Object) | ||
@@ -123,0 +129,0 @@ |
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
Major refactor
Supply chain riskPackage has recently undergone a major refactor. It may be unstable or indicate significant internal changes. Use caution when updating to versions that include significant changes.
Found 1 instance in 1 package
12952
113
165
0