@chakra-ui/system
Advanced tools
Comparing version 1.1.3 to 1.1.4
# Change Log | ||
## 1.1.4 | ||
### Patch Changes | ||
- Updated dependencies | ||
[[`ff7c3676`](https://github.com/chakra-ui/chakra-ui/commit/ff7c36764650dc7f01957c417eae1ec8ce356495), | ||
[`6830c0e3`](https://github.com/chakra-ui/chakra-ui/commit/6830c0e36959ebd76ce1991dd89d7303ce33b0d0), | ||
[`09f028e4`](https://github.com/chakra-ui/chakra-ui/commit/09f028e4f2539d51b1c9ac7f3aec422ee6848fa3)]: | ||
- @chakra-ui/styled-system@1.4.0 | ||
## 1.1.3 | ||
@@ -4,0 +14,0 @@ |
@@ -5,3 +5,3 @@ "use strict"; | ||
exports.styled = styled; | ||
exports.chakra = exports.styleResolver = void 0; | ||
exports.chakra = exports.getStyleObject = void 0; | ||
@@ -12,3 +12,3 @@ var _styledSystem = require("@chakra-ui/styled-system"); | ||
var _styled = _interopRequireDefault(require("@emotion/styled")); | ||
var _styled2 = _interopRequireDefault(require("@emotion/styled")); | ||
@@ -44,3 +44,3 @@ var _shouldForwardProp = require("./should-forward-prop"); | ||
*/ | ||
var styleResolver = function styleResolver(_ref) { | ||
var getStyleObject = function getStyleObject(_ref) { | ||
var baseStyle = _ref.baseStyle; | ||
@@ -101,3 +101,3 @@ return function (props) { | ||
exports.styleResolver = styleResolver; | ||
exports.getStyleObject = getStyleObject; | ||
@@ -113,8 +113,6 @@ function styled(component, options) { | ||
var styledFn = (0, _styled["default"])(component, styledOptions); | ||
var args = styleResolver({ | ||
var styleObject = getStyleObject({ | ||
baseStyle: baseStyle | ||
}); | ||
var StyledComponent = styledFn(args); | ||
return StyledComponent; | ||
return (0, _styled2["default"])(component, styledOptions)(styleObject); | ||
} | ||
@@ -121,0 +119,0 @@ |
@@ -5,3 +5,3 @@ function _objectWithoutPropertiesLoose(source, excluded) { if (source == null) return {}; var target = {}; var sourceKeys = Object.keys(source); var key, i; for (i = 0; i < sourceKeys.length; i++) { key = sourceKeys[i]; if (excluded.indexOf(key) >= 0) continue; target[key] = source[key]; } return target; } | ||
import { memoizedGet as get, objectFilter, objectAssign, isFunction } from "@chakra-ui/utils"; | ||
import emotionStyled from "@emotion/styled"; | ||
import _styled from "@emotion/styled"; | ||
import { shouldForwardProp } from "./should-forward-prop"; | ||
@@ -31,3 +31,3 @@ import { domElements } from "./system.utils"; | ||
*/ | ||
export var styleResolver = (_ref) => { | ||
export var getStyleObject = (_ref) => { | ||
var { | ||
@@ -100,8 +100,6 @@ baseStyle | ||
var styledFn = emotionStyled(component, styledOptions); | ||
var args = styleResolver({ | ||
var styleObject = getStyleObject({ | ||
baseStyle | ||
}); | ||
var StyledComponent = styledFn(args); | ||
return StyledComponent; | ||
return _styled(component, styledOptions)(styleObject); | ||
} | ||
@@ -108,0 +106,0 @@ export var chakra = styled; |
@@ -17,3 +17,3 @@ import { ResponsiveValue, SystemProps, SystemStyleObject, ChakraStyleProps } from "@chakra-ui/styled-system"; | ||
} | ||
declare type StyleResolver = (params: { | ||
declare type GetStyleObject = (options: { | ||
baseStyle?: SystemStyleObject; | ||
@@ -34,3 +34,3 @@ }) => FunctionInterpolation<StyleResolverProps>; | ||
*/ | ||
export declare const styleResolver: StyleResolver; | ||
export declare const getStyleObject: GetStyleObject; | ||
interface StyledOptions { | ||
@@ -37,0 +37,0 @@ shouldForwardProp?(prop: string): boolean; |
{ | ||
"name": "@chakra-ui/system", | ||
"version": "1.1.3", | ||
"version": "1.1.4", | ||
"description": "Chakra UI system primitives", | ||
@@ -58,3 +58,3 @@ "keywords": [ | ||
"@chakra-ui/color-mode": "1.0.2", | ||
"@chakra-ui/styled-system": "1.3.1", | ||
"@chakra-ui/styled-system": "1.4.0", | ||
"@chakra-ui/utils": "1.0.2", | ||
@@ -61,0 +61,0 @@ "react-fast-compare": "3.2.0" |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
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
117598
926
+ Added@chakra-ui/styled-system@1.4.0(transitive)
- Removed@chakra-ui/styled-system@1.3.1(transitive)