Socket
Socket
Sign inDemoInstall

@chakra-ui/styled-system

Package Overview
Dependencies
Maintainers
4
Versions
474
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@chakra-ui/styled-system - npm Package Compare versions

Comparing version 1.0.0-rc.4 to 1.0.0-rc.5

8

CHANGELOG.md

@@ -6,2 +6,10 @@ # Change Log

# 1.0.0-rc.5 (2020-09-27)
**Note:** Version bump only for package @chakra-ui/styled-system
# 1.0.0-rc.4 (2020-09-25)

@@ -8,0 +16,0 @@

2

dist/cjs/config/layout.js

@@ -12,3 +12,3 @@ "use strict";

var defaultValue = !(0, _utils.isNumber)(value) || value > 1 ? value : value * 100 + "%";
return (0, _utils.get)(scale, value, defaultValue);
return (0, _utils.memoizedGet)(scale, value, defaultValue);
}

@@ -15,0 +15,0 @@

@@ -8,6 +8,6 @@ "use strict";

var _parser = require("./parser");
var _pseudo = require("./pseudo");
var _parser = require("./parser");
function _createForOfIteratorHelperLoose(o, allowArrayLike) { var it; if (typeof Symbol === "undefined" || o[Symbol.iterator] == null) { if (Array.isArray(o) || (it = _unsupportedIterableToArray(o)) || allowArrayLike && o && typeof o.length === "number") { if (it) o = it; var i = 0; return function () { if (i >= o.length) return { done: true }; return { done: false, value: o[i++] }; }; } throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method."); } it = o[Symbol.iterator](); return it.next.bind(it); }

@@ -140,3 +140,3 @@

if (key === "apply") {
var apply = css((0, _utils.get)(theme, val))(theme);
var apply = css((0, _utils.memoizedGet)(theme, val))(theme);
computedStyles = (0, _utils.merge)({}, computedStyles, apply);

@@ -151,4 +151,4 @@ continue;

var scale = (0, _utils.get)(theme, config == null ? void 0 : config.scale, {});
var value = (_config$transform = config == null ? void 0 : config.transform == null ? void 0 : config.transform(val, scale)) != null ? _config$transform : (0, _utils.get)(scale, val, val);
var scale = (0, _utils.memoizedGet)(theme, config == null ? void 0 : config.scale, {});
var value = (_config$transform = config == null ? void 0 : config.transform == null ? void 0 : config.transform(val, scale)) != null ? _config$transform : (0, _utils.memoizedGet)(scale, val, val);

@@ -155,0 +155,0 @@ if (config == null ? void 0 : config.properties) {

@@ -1,2 +0,2 @@

import { get, isNumber } from "@chakra-ui/utils";
import { isNumber, memoizedGet } from "@chakra-ui/utils";
import { createParser, system } from "@styled-system/core";

@@ -6,3 +6,3 @@

var defaultValue = !isNumber(value) || value > 1 ? value : value * 100 + "%";
return get(scale, value, defaultValue);
return memoizedGet(scale, value, defaultValue);
}

@@ -9,0 +9,0 @@

@@ -1,4 +0,4 @@

import { get, isArray, isObject, isResponsiveObjectLike, objectToArrayNotation, runIfFn, merge, isCustomBreakpoint } from "@chakra-ui/utils";
import { isArray, isCustomBreakpoint, isObject, isResponsiveObjectLike, memoizedGet as get, merge, objectToArrayNotation, runIfFn } from "@chakra-ui/utils";
import { parser } from "./parser";
import { pseudoSelectors } from "./pseudo";
import { parser } from "./parser";
var cache = {

@@ -5,0 +5,0 @@ themeBreakpoints: [],

import { Dict } from "@chakra-ui/utils";
import { StyleObjectOrFn, CSSObject } from "./css.types";
import { CSSObject, StyleObjectOrFn } from "./css.types";
declare type PropsOrTheme = Dict | {

@@ -4,0 +4,0 @@ theme: Dict;

{
"name": "@chakra-ui/styled-system",
"version": "1.0.0-rc.4",
"version": "1.0.0-rc.5",
"description": "Style function for css-in-js building component libraries",

@@ -51,3 +51,3 @@ "keywords": [

"dependencies": {
"@chakra-ui/utils": "1.0.0-rc.4",
"@chakra-ui/utils": "1.0.0-rc.5",
"@styled-system/core": "5.1.2",

@@ -60,3 +60,3 @@ "css-get-unit": "1.0.1",

},
"gitHead": "830b8587c572a4c20d6b56b256accd6686255819"
"gitHead": "b5c8482b778b19f27ea1d6c8ab6d5ed39c664afa"
}

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

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