@chakra-ui/theme-tools
Advanced tools
Comparing version 1.0.0-rc.4 to 1.0.0-rc.5
@@ -6,2 +6,10 @@ # Change Log | ||
# 1.0.0-rc.5 (2020-09-27) | ||
**Note:** Version bump only for package @chakra-ui/theme-tools | ||
# 1.0.0-rc.4 (2020-09-25) | ||
@@ -8,0 +16,0 @@ |
@@ -6,6 +6,8 @@ "use strict"; | ||
var _utils = require("@chakra-ui/utils"); | ||
function _extends() { _extends = Object.assign || function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; return _extends.apply(this, arguments); } | ||
var createBreakpoints = function createBreakpoints(config) { | ||
var sorted = Object.fromEntries(Object.entries(_extends({ | ||
var sorted = (0, _utils.fromEntries)(Object.entries(_extends({ | ||
base: "0em" | ||
@@ -12,0 +14,0 @@ }, config)).sort(function (a, b) { |
@@ -21,3 +21,3 @@ "use strict"; | ||
var getColor = function getColor(theme, color, fallback) { | ||
var hex = (0, _utils.get)(theme, "colors." + color, color); | ||
var hex = (0, _utils.memoizedGet)(theme, "colors." + color, color); | ||
var isValid = (0, _tinycolor["default"])(hex).isValid(); | ||
@@ -24,0 +24,0 @@ return isValid ? hex : fallback; |
function _extends() { _extends = Object.assign || function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; return _extends.apply(this, arguments); } | ||
import { fromEntries } from "@chakra-ui/utils"; | ||
export var createBreakpoints = config => { | ||
var sorted = Object.fromEntries(Object.entries(_extends({ | ||
var sorted = fromEntries(Object.entries(_extends({ | ||
base: "0em" | ||
@@ -6,0 +7,0 @@ }, config)).sort((a, b) => parseInt(a[1]) > parseInt(b[1]) ? 1 : -1)); |
import Color from "tinycolor2"; | ||
import { get, isEmptyObject } from "@chakra-ui/utils"; | ||
import { memoizedGet as get, isEmptyObject } from "@chakra-ui/utils"; | ||
/** | ||
@@ -4,0 +4,0 @@ * Get the color raw value from theme |
{ | ||
"name": "@chakra-ui/theme-tools", | ||
"version": "1.0.0-rc.4", | ||
"version": "1.0.0-rc.5", | ||
"description": "Set of helpers that makes theming and styling easier", | ||
@@ -47,3 +47,3 @@ "keywords": [ | ||
"dependencies": { | ||
"@chakra-ui/utils": "1.0.0-rc.4", | ||
"@chakra-ui/utils": "1.0.0-rc.5", | ||
"@types/tinycolor2": "1.4.2", | ||
@@ -56,5 +56,5 @@ "tinycolor2": "1.4.1" | ||
"devDependencies": { | ||
"@chakra-ui/system": "1.0.0-rc.4" | ||
"@chakra-ui/system": "1.0.0-rc.5" | ||
}, | ||
"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
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
52862
529
+ Added@chakra-ui/utils@1.0.0-rc.5(transitive)
- Removed@chakra-ui/utils@1.0.0-rc.4(transitive)
Updated@chakra-ui/utils@1.0.0-rc.5