react-better-html 1.1.73 → 1.1.75

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
@@ -649,7 +649,7 @@ declare const useLoaderControls: () => {
649
649
  startLoading: (loaderName: LoaderName | AnyOtherString) => void;
650
650
  stopLoading: (loaderName: LoaderName | AnyOtherString) => void;
651
651
  };
652
- type BetterHtmlProviderValue = DeepPartialRecord<OmitProps<BetterHtmlConfig, "colorTheme">>;
652
+ type BetterHtmlProviderValue = DeepPartialRecord<BetterHtmlConfig>;
653
653
  type BetterHtmlProviderProps = {
654
654
  value?: BetterHtmlProviderValue;
655
655
  plugins?: BetterHtmlPlugin[];
package/dist/index.d.ts CHANGED
@@ -649,7 +649,7 @@ declare const useLoaderControls: () => {
649
649
  startLoading: (loaderName: LoaderName | AnyOtherString) => void;
650
650
  stopLoading: (loaderName: LoaderName | AnyOtherString) => void;
651
651
  };
652
- type BetterHtmlProviderValue = DeepPartialRecord<OmitProps<BetterHtmlConfig, "colorTheme">>;
652
+ type BetterHtmlProviderValue = DeepPartialRecord<BetterHtmlConfig>;
653
653
  type BetterHtmlProviderProps = {
654
654
  value?: BetterHtmlProviderValue;
655
655
  plugins?: BetterHtmlPlugin[];
package/dist/index.js CHANGED
@@ -1626,7 +1626,7 @@ function BetterHtmlProvider({ value, plugins: pluginsToUse, children }) {
1626
1626
  const [loaders, setLoaders] = (0, import_react.useState)(value?.loaders ?? {});
1627
1627
  const [plugins] = (0, import_react.useState)(pluginsToUse ?? []);
1628
1628
  const [colorTheme, setColorTheme] = (0, import_react.useState)(
1629
- localStorage.getItem("theme") === "dark" ? "dark" : "light"
1629
+ localStorage.getItem("theme") === "dark" ? "dark" : value?.colorTheme ?? "light"
1630
1630
  );
1631
1631
  const readyValue = (0, import_react.useMemo)(
1632
1632
  () => ({
@@ -1679,7 +1679,7 @@ function BetterHtmlProvider({ value, plugins: pluginsToUse, children }) {
1679
1679
  const observer = new MutationObserver((mutations) => {
1680
1680
  mutations.forEach((mutation) => {
1681
1681
  if (mutation.type === "attributes") {
1682
- setColorTheme(html.getAttribute("data-theme") === "dark" ? "dark" : "light");
1682
+ setColorTheme(html.getAttribute("data-theme") === "dark" ? "dark" : value?.colorTheme ?? "light");
1683
1683
  }
1684
1684
  });
1685
1685
  });
@@ -3064,7 +3064,7 @@ function PageHeader({
3064
3064
  /* @__PURE__ */ (0, import_jsx_runtime11.jsxs)(
3065
3065
  Div_default.column,
3066
3066
  {
3067
- justifyContent: textAlign === "center" ? "center" : textAlign === "right" ? "flex-end" : void 0,
3067
+ alignItems: textAlign === "center" ? "center" : textAlign === "right" ? "flex-end" : void 0,
3068
3068
  flex: 1,
3069
3069
  gap: theme2.styles.gap / 2,
3070
3070
  children: [
@@ -6009,7 +6009,7 @@ var TableStyledComponent = import_styled_components11.default.table.withConfig({
6009
6009
  transition: ${props.theme.styles.transition};
6010
6010
 
6011
6011
  &:not(.isHeader):hover {
6012
- background-color: ${props.theme.colors.backgroundSecondary}20;
6012
+ filter: brightness(0.95);
6013
6013
  }
6014
6014
  ` : ""}
6015
6015