@styled-system/space
Advanced tools
Comparing version 5.0.0-alpha.0 to 5.0.0
"use strict"; | ||
Object.defineProperty(exports, "__esModule", { | ||
value: true | ||
}); | ||
var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefault"); | ||
exports.__esModule = true; | ||
exports["default"] = exports.space = exports.padding = exports.margin = void 0; | ||
var _extends2 = _interopRequireDefault(require("@babel/runtime/helpers/extends")); | ||
var _core = require("@styled-system/core"); | ||
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 _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 defaults = { | ||
@@ -138,5 +136,5 @@ space: [0, 4, 8, 16, 32, 64, 128, 256, 512] | ||
exports.padding = padding; | ||
var space = (0, _core.system)(_objectSpread({}, configs.margin, configs.padding)); | ||
var space = (0, _core.system)((0, _extends2["default"])({}, configs.margin, configs.padding)); | ||
exports.space = space; | ||
var _default = space; | ||
exports["default"] = _default; |
{ | ||
"name": "@styled-system/space", | ||
"version": "5.0.0-alpha.0", | ||
"version": "5.0.0", | ||
"main": "dist/index.js", | ||
"module": "dist/index.esm.js", | ||
"author": "Brent Jackson <jxnblk@gmail.com>", | ||
"license": "MIT", | ||
"scripts": { | ||
"prepare": "babel src -d dist" | ||
}, | ||
"gitHead": "5357d5b7338f1236054dcd026bb27d8ca6a8e146", | ||
"gitHead": "e67157cfd0222c355826adf5ad271534653c00df", | ||
"dependencies": { | ||
"@styled-system/core": "^5.0.0-alpha.0" | ||
"@styled-system/core": "^5.0.0" | ||
}, | ||
@@ -14,0 +12,0 @@ "publishConfig": { |
@@ -1,5 +0,2 @@ | ||
import { | ||
get, | ||
system | ||
} from '@styled-system/core' | ||
import { get, system } from '@styled-system/core' | ||
@@ -59,3 +56,3 @@ const defaults = { | ||
marginX: { | ||
properties: [ 'marginLeft', 'marginRight' ], | ||
properties: ['marginLeft', 'marginRight'], | ||
scale: 'space', | ||
@@ -66,3 +63,3 @@ transform: getMargin, | ||
marginY: { | ||
properties: [ 'marginTop', 'marginBottom' ], | ||
properties: ['marginTop', 'marginBottom'], | ||
scale: 'space', | ||
@@ -108,3 +105,3 @@ transform: getMargin, | ||
paddingX: { | ||
properties: [ 'paddingLeft', 'paddingRight' ], | ||
properties: ['paddingLeft', 'paddingRight'], | ||
scale: 'space', | ||
@@ -114,3 +111,3 @@ defaultScale: defaults.space, | ||
paddingY: { | ||
properties: [ 'paddingTop', 'paddingBottom' ], | ||
properties: ['paddingTop', 'paddingBottom'], | ||
scale: 'space', | ||
@@ -117,0 +114,0 @@ defaultScale: defaults.space, |
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
No v1
QualityPackage is not semver >=1. This means it is not stable and does not support ^ ranges.
Found 1 instance in 1 package
1
14128
6
487
Updated@styled-system/core@^5.0.0