react-better-html 1.1.165 → 1.1.166

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.
package/dist/index.d.mts CHANGED
@@ -987,11 +987,7 @@ declare const alertControls: {
987
987
  declare const colorThemeControls: {
988
988
  toggleTheme: (theme?: ColorTheme) => void;
989
989
  };
990
- declare const filterHover: {
991
- z1: string;
992
- z2: string;
993
- z3: string;
994
- };
990
+ declare const filterHover: () => Record<"z1" | "z2" | "z3", React.CSSProperties["filter"]>;
995
991
 
996
992
  declare function generateLocalStorage<LocalStorage extends object>(): {
997
993
  setItem: <StorageName extends keyof LocalStorage>(name: StorageName, value: LocalStorage[StorageName]) => void;
package/dist/index.d.ts CHANGED
@@ -987,11 +987,7 @@ declare const alertControls: {
987
987
  declare const colorThemeControls: {
988
988
  toggleTheme: (theme?: ColorTheme) => void;
989
989
  };
990
- declare const filterHover: {
991
- z1: string;
992
- z2: string;
993
- z3: string;
994
- };
990
+ declare const filterHover: () => Record<"z1" | "z2" | "z3", React.CSSProperties["filter"]>;
995
991
 
996
992
  declare function generateLocalStorage<LocalStorage extends object>(): {
997
993
  setItem: <StorageName extends keyof LocalStorage>(name: StorageName, value: LocalStorage[StorageName]) => void;
package/dist/index.js CHANGED
@@ -5548,10 +5548,13 @@ var colorThemeControls = {
5548
5548
  }, 0.01 * 1e3);
5549
5549
  }
5550
5550
  };
5551
- var filterHover = {
5552
- z1: externalBetterHtmlContextValue?.colorTheme === "dark" ? "brightness(1.1)" : "brightness(0.9)",
5553
- z2: externalBetterHtmlContextValue?.colorTheme === "dark" ? "brightness(1.2)" : "brightness(0.8)",
5554
- z3: externalBetterHtmlContextValue?.colorTheme === "dark" ? "brightness(1.3)" : "brightness(0.7)"
5551
+ var filterHover = () => {
5552
+ if (!checkBetterHtmlContextValue(externalBetterHtmlContextValue, "filterHover")) return void 0;
5553
+ return {
5554
+ z1: externalBetterHtmlContextValue.colorTheme === "dark" ? "brightness(1.1)" : "brightness(0.9)",
5555
+ z2: externalBetterHtmlContextValue.colorTheme === "dark" ? "brightness(1.2)" : "brightness(0.8)",
5556
+ z3: externalBetterHtmlContextValue.colorTheme === "dark" ? "brightness(1.3)" : "brightness(0.7)"
5557
+ };
5555
5558
  };
5556
5559
 
5557
5560
  // src/utils/functions.ts