@chakra-ui/theme-tools
Advanced tools
Comparing version 1.0.0-rc.2 to 1.0.0-rc.3
@@ -6,3 +6,3 @@ # Change Log | ||
# 1.0.0-rc.2 (2020-08-09) | ||
# 1.0.0-rc.3 (2020-08-30) | ||
@@ -20,2 +20,11 @@ **Note:** Version bump only for package @chakra-ui/theme-tools | ||
# 1.0.0-rc.2 (2020-08-09) | ||
**Note:** Version bump only for package @chakra-ui/theme-tools | ||
# Change Log | ||
All notable changes to this project will be documented in this file. See | ||
[Conventional Commits](https://conventionalcommits.org) for commit guidelines. | ||
# [1.0.0-rc.1](https://github.com/chakra-ui/chakra-ui/compare/@chakra-ui/theme-tools@1.0.0-rc.0...@chakra-ui/theme-tools@1.0.0-rc.1) (2020-08-06) | ||
@@ -22,0 +31,0 @@ |
@@ -13,3 +13,3 @@ "use strict"; | ||
return function (props) { | ||
return props.colorMode === "light" ? light : dark; | ||
return props.colorMode === "dark" ? dark : light; | ||
}; | ||
@@ -16,0 +16,0 @@ } |
@@ -18,9 +18,2 @@ "use strict"; | ||
}); | ||
var _styleConfig = require("./style-config"); | ||
Object.keys(_styleConfig).forEach(function (key) { | ||
if (key === "default" || key === "__esModule") return; | ||
exports[key] = _styleConfig[key]; | ||
}); | ||
//# sourceMappingURL=index.js.map |
import { runIfFn } from "@chakra-ui/utils"; | ||
export { runIfFn }; | ||
export function mode(light, dark) { | ||
return props => props.colorMode === "light" ? light : dark; | ||
return props => props.colorMode === "dark" ? dark : light; | ||
} | ||
@@ -6,0 +6,0 @@ export function orient(options) { |
export * from "./color"; | ||
export * from "./component"; | ||
export * from "./style-config"; | ||
//# sourceMappingURL=index.js.map |
export * from "./color"; | ||
export * from "./component"; | ||
export * from "./style-config"; |
{ | ||
"name": "@chakra-ui/theme-tools", | ||
"version": "1.0.0-rc.2", | ||
"version": "1.0.0-rc.3", | ||
"description": "Set of helpers that makes theming and styling easier", | ||
@@ -47,3 +47,3 @@ "keywords": [ | ||
"dependencies": { | ||
"@chakra-ui/utils": "1.0.0-rc.2", | ||
"@chakra-ui/utils": "1.0.0-rc.3", | ||
"@types/tinycolor2": "1.4.2", | ||
@@ -53,8 +53,8 @@ "tinycolor2": "1.4.1" | ||
"peerDependencies": { | ||
"@chakra-ui/system": "1.0.0-rc.1" | ||
"@chakra-ui/system": "1.0.0-rc.2" | ||
}, | ||
"devDependencies": { | ||
"@chakra-ui/system": "1.0.0-rc.2" | ||
"@chakra-ui/system": "1.0.0-rc.3" | ||
}, | ||
"gitHead": "c0a55ae7279887996fd2cbfb410476c86793e1bc" | ||
"gitHead": "a0b689f3a2b1589d58e4d9b0c8a9bbd02ed90f6e" | ||
} |
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
47690
18
486
+ Added@chakra-ui/color-mode@1.0.0-rc.2(transitive)
+ Added@chakra-ui/hooks@1.0.0-rc.2(transitive)
+ Added@chakra-ui/styled-system@1.0.0-rc.2(transitive)
+ Added@chakra-ui/system@1.0.0-rc.2(transitive)
+ Added@chakra-ui/utils@1.0.0-rc.3(transitive)
+ Addedcsstype@2.6.213.0.2(transitive)
- Removed@chakra-ui/color-mode@1.0.0-rc.1(transitive)
- Removed@chakra-ui/css-reset@1.0.0-rc.1(transitive)
- Removed@chakra-ui/hooks@1.0.0-rc.1(transitive)
- Removed@chakra-ui/portal@1.0.0-rc.1(transitive)
- Removed@chakra-ui/styled-system@1.0.0-rc.1(transitive)
- Removed@chakra-ui/system@1.0.0-rc.1(transitive)
- Removed@chakra-ui/utils@1.0.0-rc.2(transitive)
- Removedcsstype@2.6.9(transitive)
Updated@chakra-ui/utils@1.0.0-rc.3