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.1.0 to 1.1.1

9

CHANGELOG.md
# Change Log
## 1.1.1
### Patch Changes
- [`127baa0f`](https://github.com/chakra-ui/chakra-ui/commit/127baa0f1926bf1f8ace6f46cfdc08606fe9d347)
[#2702](https://github.com/chakra-ui/chakra-ui/pull/2702) Thanks
[@terryyu](https://github.com/terryyu)! - fix style prop of shortcut
definition, closes #2700
## 1.1.0

@@ -4,0 +13,0 @@

18

dist/cjs/css.js

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

for (var k in styles) {
var _config$transform;
var _config, _config$transform, _config2, _config3, _config4;

@@ -139,2 +139,10 @@ var x = styles[k];

if (config === true) {
// shortcut definition
config = {
property: key,
scale: key
};
}
if (key === "apply") {

@@ -151,6 +159,6 @@ var apply = css((0, _utils.memoizedGet)(theme, val))(theme);

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);
var scale = (0, _utils.memoizedGet)(theme, (_config = config) == null ? void 0 : _config.scale, {});
var value = (_config$transform = (_config2 = config) == null ? void 0 : _config2.transform == null ? void 0 : _config2.transform(val, scale)) != null ? _config$transform : (0, _utils.memoizedGet)(scale, val, val);
if (config == null ? void 0 : config.properties) {
if ((_config3 = config) != null && _config3.properties) {
for (var _iterator = _createForOfIteratorHelperLoose(config.properties), _step; !(_step = _iterator()).done;) {

@@ -164,3 +172,3 @@ var property = _step.value;

if (config == null ? void 0 : config.property) {
if ((_config4 = config) != null && _config4.property) {
computedStyles[config.property] = value;

@@ -167,0 +175,0 @@ continue;

@@ -112,3 +112,3 @@ import { isArray, isCustomBreakpoint, isObject, isResponsiveObjectLike, memoizedGet as get, mergeWith, objectToArrayNotation, runIfFn } from "@chakra-ui/utils";

for (var k in styles) {
var _config$transform;
var _config, _config$transform, _config2, _config3, _config4;

@@ -120,2 +120,10 @@ var x = styles[k];

if (config === true) {
// shortcut definition
config = {
property: key,
scale: key
};
}
if (key === "apply") {

@@ -132,6 +140,6 @@ var apply = css(get(theme, val))(theme);

var scale = 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 : get(scale, val, val);
var scale = get(theme, (_config = config) == null ? void 0 : _config.scale, {});
var value = (_config$transform = (_config2 = config) == null ? void 0 : _config2.transform == null ? void 0 : _config2.transform(val, scale)) != null ? _config$transform : get(scale, val, val);
if (config == null ? void 0 : config.properties) {
if ((_config3 = config) != null && _config3.properties) {
for (var property of config.properties) {

@@ -144,3 +152,3 @@ computedStyles[property] = value;

if (config == null ? void 0 : config.property) {
if ((_config4 = config) != null && _config4.property) {
computedStyles[config.property] = value;

@@ -147,0 +155,0 @@ continue;

{
"name": "@chakra-ui/styled-system",
"version": "1.1.0",
"version": "1.1.1",
"description": "Style function for css-in-js building component libraries",

@@ -5,0 +5,0 @@ "keywords": [

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