New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More
Socket
Sign inDemoInstall
Socket

@chakra-ui/color-mode

Package Overview
Dependencies
Maintainers
3
Versions
363
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@chakra-ui/color-mode - npm Package Compare versions

Comparing version 0.0.0-pr-20220620149 to 0.0.0-pr-202208163634

5

dist/chakra-ui-color-mode.cjs.dev.js

@@ -127,2 +127,7 @@ 'use strict';

if (utils.isBrowser) {
/**
* @deprecated
* The CSS variable `--chakra-ui-color-mode` will be removed in the next major release
* Please use the `data-theme` attribute to determine the current color mode
*/
document.documentElement.style.setProperty("--chakra-ui-color-mode", mode);

@@ -129,0 +134,0 @@ document.documentElement.setAttribute("data-theme", mode);

@@ -127,2 +127,7 @@ 'use strict';

if (utils.isBrowser) {
/**
* @deprecated
* The CSS variable `--chakra-ui-color-mode` will be removed in the next major release
* Please use the `data-theme` attribute to determine the current color mode
*/
document.documentElement.style.setProperty("--chakra-ui-color-mode", mode);

@@ -129,0 +134,0 @@ document.documentElement.setAttribute("data-theme", mode);

@@ -103,2 +103,7 @@ import { useEnvironment } from '@chakra-ui/react-env';

if (isBrowser) {
/**
* @deprecated
* The CSS variable `--chakra-ui-color-mode` will be removed in the next major release
* Please use the `data-theme` attribute to determine the current color mode
*/
document.documentElement.style.setProperty("--chakra-ui-color-mode", mode);

@@ -105,0 +110,0 @@ document.documentElement.setAttribute("data-theme", mode);

8

package.json
{
"name": "@chakra-ui/color-mode",
"version": "0.0.0-pr-20220620149",
"version": "0.0.0-pr-202208163634",
"description": "React component and hooks for handling light and dark mode.",

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

"dependencies": {
"@chakra-ui/hooks": "0.0.0-pr-20220620149",
"@chakra-ui/react-env": "0.0.0-pr-20220620149",
"@chakra-ui/utils": "0.0.0-pr-20220620149"
"@chakra-ui/hooks": "0.0.0-pr-202208163634",
"@chakra-ui/react-env": "0.0.0-pr-202208163634",
"@chakra-ui/utils": "0.0.0-pr-202208163634"
},

@@ -46,0 +46,0 @@ "peerDependencies": {

@@ -83,2 +83,7 @@ import { isBrowser, noop } from "@chakra-ui/utils"

if (isBrowser) {
/**
* @deprecated
* The CSS variable `--chakra-ui-color-mode` will be removed in the next major release
* Please use the `data-theme` attribute to determine the current color mode
*/
document.documentElement.style.setProperty("--chakra-ui-color-mode", mode)

@@ -85,0 +90,0 @@ document.documentElement.setAttribute("data-theme", mode)

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