Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

@styled-system/space

Package Overview
Dependencies
Maintainers
1
Versions
23
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@styled-system/space - npm Package Compare versions

Comparing version 5.0.0-alpha.0 to 5.0.0

14

dist/index.js
"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,

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc