@chakra-ui/color-mode
Advanced tools
Comparing version 2.1.4 to 2.1.5
{ | ||
"name": "@chakra-ui/color-mode", | ||
"version": "2.1.4", | ||
"version": "2.1.5", | ||
"description": "React component and hooks for handling light and dark mode.", | ||
@@ -40,4 +40,4 @@ "keywords": [ | ||
"dependencies": { | ||
"@chakra-ui/hooks": "2.0.6", | ||
"@chakra-ui/utils": "2.0.6" | ||
"@chakra-ui/hooks": "2.0.7", | ||
"@chakra-ui/utils": "2.0.7" | ||
}, | ||
@@ -56,4 +56,3 @@ "peerDependencies": { | ||
"build:fast": "JSX=1 tsup src/index.ts" | ||
}, | ||
"readme": "# Color Mode\n\nReact component that adds support for light mode and dark mode using\n`localStorage` and `matchMedia`.\n\n## Installation\n\n```sh\nyarn add @chakra-ui/color-mode\n\n# or\n\nnpm i @chakra-ui/color-mode\n```\n\n## Import component\n\nTo enable this behavior within your apps, wrap your application in a\n`ColorModeProvider` below the `ThemeProvider`\n\n```jsx live=false\nimport * as React from \"react\"\nimport { ColorModeProvider } from \"@chakra-ui/color-mode\"\nimport theme from \"./theme\"\n\nfunction App({ children }) {\n return (\n <ThemeProvider theme={theme}>\n <ColorModeProvider>{children}</ColorModeProvider>\n </ThemeProvider>\n )\n}\n```\n\nThen you can use the hook `useColorMode` within your application.\n\n```jsx\nfunction Example() {\n const { colorMode, toggleColorMode } = useColorMode()\n return (\n <header>\n <Button onClick={toggleColorMode}>\n Toggle {colorMode === \"light\" ? \"Dark\" : \"Light\"}\n </Button>\n </header>\n )\n}\n```\n" | ||
} | ||
} |
Empty package
Supply chain riskPackage does not contain any code. It may be removed, is name squatting, or the result of a faulty package publish.
Found 1 instance in 1 package
Major refactor
Supply chain riskPackage has recently undergone a major refactor. It may be unstable or indicate significant internal changes. Use caution when updating to versions that include significant changes.
Found 1 instance in 1 package
Major refactor
Supply chain riskPackage has recently undergone a major refactor. It may be unstable or indicate significant internal changes. Use caution when updating to versions that include significant changes.
Found 1 instance in 1 package
3323
3
0
2
+ Added@chakra-ui/hooks@2.0.7(transitive)
+ Added@chakra-ui/react-utils@2.0.4(transitive)
+ Added@chakra-ui/utils@2.0.7(transitive)
- Removed@chakra-ui/hooks@2.0.6(transitive)
- Removed@chakra-ui/react-utils@2.0.3(transitive)
- Removed@chakra-ui/utils@2.0.6(transitive)
Updated@chakra-ui/hooks@2.0.7
Updated@chakra-ui/utils@2.0.7