@vueless/storybook 0.0.69 → 0.0.71

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -9,12 +9,17 @@ export const storyDarkModeDecorator = () => {
9
9
  const sbAddonThemesConfig = localStorage.getItem("sb-addon-themes-3") || "{}";
10
10
  const storybookTheme = JSON.parse(sbAddonThemesConfig).current || "light";
11
11
 
12
- document.body.classList.add(storybookTheme); // this fixing first load
13
- document.documentElement.classList.add(storybookTheme);
12
+ // this fixing first load
13
+ document.body.classList.add(storybookTheme);
14
14
 
15
- setTimeout(() => {
16
- document.documentElement.classList.remove("light", "dark");
17
- }, 4000);
15
+ // this fixing white blink issue
16
+ if (window.location.toString().includes("/docs/")) {
17
+ document.documentElement.classList.add(storybookTheme);
18
+
19
+ setTimeout(() => {
20
+ document.documentElement.classList.remove("light", "dark");
21
+ }, 4000);
22
+ }
18
23
 
19
24
  /* Initialize theme state. */
20
25
  const prefersColorSchemeDark = window.matchMedia("(prefers-color-scheme: dark)");
@@ -167,7 +167,11 @@ function parseKeyValuePairs(input) {
167
167
 
168
168
  let value;
169
169
 
170
- if (rawValue === "!null") {
170
+ if (rawValue === "!true") {
171
+ value = true;
172
+ } else if (rawValue === "!false") {
173
+ value = false;
174
+ } else if (rawValue === "!null") {
171
175
  value = null;
172
176
  } else if (rawValue === "!undefined") {
173
177
  value = undefined;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@vueless/storybook",
3
- "version": "0.0.69",
3
+ "version": "0.0.71",
4
4
  "description": "Simplifies Storybook configuration for Vueless UI library.",
5
5
  "homepage": "https://vueless.com",
6
6
  "author": "Johnny Grid",