@styled-system/variant
Advanced tools
Comparing version 5.0.0-5 to 5.0.0-alpha.0
"use strict"; | ||
exports.__esModule = true; | ||
Object.defineProperty(exports, "__esModule", { | ||
value: true | ||
}); | ||
exports["default"] = exports.variant = void 0; | ||
@@ -8,5 +10,5 @@ | ||
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; } | ||
var variant = function variant(_ref) { | ||
var _config; | ||
var key = _ref.key, | ||
@@ -21,3 +23,5 @@ _ref$prop = _ref.prop, | ||
sx.scale = key; | ||
var config = (_config = {}, _config[prop] = sx, _config); | ||
var config = _defineProperty({}, prop, sx); | ||
var parser = (0, _core.createParser)(config); | ||
@@ -29,2 +33,2 @@ return parser; | ||
var _default = variant; | ||
exports["default"] = _default; | ||
exports["default"] = _default; |
{ | ||
"name": "@styled-system/variant", | ||
"version": "5.0.0-5", | ||
"version": "5.0.0-alpha.0", | ||
"main": "dist/index.js", | ||
"module": "dist/index.esm.js", | ||
"author": "Brent Jackson <jxnblk@gmail.com>", | ||
"license": "MIT", | ||
"scripts": { | ||
"prepare": "mkdir -p dist && npm run build:cjs && npm run build:esm", | ||
"build:cjs": "NODE_ENV=cjs babel src/index.js -o dist/index.js", | ||
"build:esm": "NODE_ENV=esm babel src/index.js -o dist/index.esm.js" | ||
"prepare": "babel src -d dist" | ||
}, | ||
"dependencies": { | ||
"@styled-system/core": "^5.0.0-5" | ||
"@styled-system/core": "^5.0.0-alpha.0" | ||
}, | ||
"gitHead": "2ff17e9f5bf9925e9dd6d7d43c77e924b8dd1b20", | ||
"gitHead": "5357d5b7338f1236054dcd026bb27d8ca6a8e146", | ||
"publishConfig": { | ||
@@ -18,0 +15,0 @@ "access": "public" |
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
4576
122