@chakra-ui/color-mode
Advanced tools
Comparing version 0.0.0-dev-20230112154520 to 0.0.0-dev-20230718122336
@@ -0,1 +1,2 @@ | ||
'use client' | ||
"use strict"; | ||
@@ -48,1 +49,2 @@ var __defProp = Object.defineProperty; | ||
}); | ||
//# sourceMappingURL=color-mode-context.js.map |
@@ -0,1 +1,2 @@ | ||
'use client' | ||
"use strict"; | ||
@@ -256,1 +257,2 @@ var __defProp = Object.defineProperty; | ||
}); | ||
//# sourceMappingURL=color-mode-provider.js.map |
@@ -1,2 +0,2 @@ | ||
declare type ColorModeScriptProps = { | ||
type ColorModeScriptProps = { | ||
type?: "localStorage" | "cookie"; | ||
@@ -3,0 +3,0 @@ initialColorMode?: "light" | "dark" | "system"; |
@@ -0,1 +1,2 @@ | ||
'use client' | ||
"use strict"; | ||
@@ -66,1 +67,2 @@ var __defProp = Object.defineProperty; | ||
}); | ||
//# sourceMappingURL=color-mode-script.js.map |
@@ -1,7 +0,7 @@ | ||
declare type ColorMode = "light" | "dark"; | ||
declare type ColorModeWithSystem = ColorMode | "system" | undefined; | ||
type ColorMode = "light" | "dark"; | ||
type ColorModeWithSystem = ColorMode | "system" | undefined; | ||
/** | ||
* @deprecated use `ColorModeWithSystem` instead | ||
*/ | ||
declare type ConfigColorMode = ColorModeWithSystem; | ||
type ConfigColorMode = ColorModeWithSystem; | ||
interface ColorModeOptions { | ||
@@ -8,0 +8,0 @@ initialColorMode?: ColorModeWithSystem; |
@@ -0,1 +1,2 @@ | ||
'use client' | ||
"use strict"; | ||
@@ -19,1 +20,2 @@ var __defProp = Object.defineProperty; | ||
module.exports = __toCommonJS(color_mode_types_exports); | ||
//# sourceMappingURL=color-mode-types.js.map |
import { ColorMode } from './color-mode-types.js'; | ||
declare type UtilOptions = { | ||
type UtilOptions = { | ||
preventTransition?: boolean; | ||
@@ -5,0 +5,0 @@ }; |
@@ -0,1 +1,2 @@ | ||
'use client' | ||
"use strict"; | ||
@@ -92,1 +93,2 @@ var __defProp = Object.defineProperty; | ||
}); | ||
//# sourceMappingURL=color-mode.utils.js.map |
@@ -0,1 +1,2 @@ | ||
'use client' | ||
"use strict"; | ||
@@ -326,1 +327,2 @@ var __defProp = Object.defineProperty; | ||
}); | ||
//# sourceMappingURL=index.js.map |
import { ColorMode } from './color-mode-types.js'; | ||
declare const STORAGE_KEY = "chakra-ui-color-mode"; | ||
declare type MaybeColorMode = ColorMode | undefined; | ||
type MaybeColorMode = ColorMode | undefined; | ||
interface StorageManager { | ||
@@ -6,0 +6,0 @@ type: "cookie" | "localStorage"; |
@@ -0,1 +1,2 @@ | ||
'use client' | ||
"use strict"; | ||
@@ -86,1 +87,2 @@ var __defProp = Object.defineProperty; | ||
}); | ||
//# sourceMappingURL=storage-manager.js.map |
{ | ||
"name": "@chakra-ui/color-mode", | ||
"version": "0.0.0-dev-20230112154520", | ||
"version": "0.0.0-dev-20230718122336", | ||
"description": "React component and hooks for handling light and dark mode.", | ||
@@ -38,3 +38,3 @@ "keywords": [ | ||
"dependencies": { | ||
"@chakra-ui/react-use-safe-layout-effect": "0.0.0-dev-20230112154520" | ||
"@chakra-ui/react-use-safe-layout-effect": "0.0.0-dev-20230718122336" | ||
}, | ||
@@ -46,14 +46,6 @@ "peerDependencies": { | ||
"react": "^18.0.0", | ||
"clean-package": "2.1.1", | ||
"@chakra-ui/utils": "0.0.0-dev-20230112154520" | ||
"clean-package": "2.2.0", | ||
"@chakra-ui/utils": "2.0.15" | ||
}, | ||
"clean-package": "../../../clean-package.config.json", | ||
"tsup": { | ||
"clean": true, | ||
"target": "es2019", | ||
"format": [ | ||
"cjs", | ||
"esm" | ||
] | ||
}, | ||
"module": "dist/index.mjs", | ||
@@ -60,0 +52,0 @@ "types": "dist/index.d.ts", |
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
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
113690
48
1400