storybook-dark-mode
Advanced tools
Comparing version 2.0.1 to 2.0.2
@@ -158,5 +158,9 @@ "use strict"; | ||
return _objectSpread(_objectSpread({}, defaultParams), userTheme); | ||
}; | ||
}; // On initial load, set the dark mode class on the manager | ||
// This is needed if you're using mostly CSS overrides to styles the storybook | ||
// Otherwise the default theme is set in src/preset/manager.tsx | ||
exports.store = store; | ||
updateManager(store()); | ||
@@ -163,0 +167,0 @@ /** A toolbar icon to toggle between dark and light themes in storybook */ |
@@ -129,4 +129,8 @@ var _excluded = ["current", "stylePreview"]; | ||
return _objectSpread(_objectSpread({}, defaultParams), userTheme); | ||
}; | ||
}; // On initial load, set the dark mode class on the manager | ||
// This is needed if you're using mostly CSS overrides to styles the storybook | ||
// Otherwise the default theme is set in src/preset/manager.tsx | ||
updateManager(store()); | ||
/** A toolbar icon to toggle between dark and light themes in storybook */ | ||
@@ -133,0 +137,0 @@ export var DarkMode = function DarkMode(_ref2) { |
{ | ||
"name": "storybook-dark-mode", | ||
"version": "2.0.1", | ||
"version": "2.0.2", | ||
"description": "Toggle between light and dark mode in Storybook", | ||
@@ -5,0 +5,0 @@ "main": "dist/cjs/index.js", |
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
78764
1045