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.mjs CHANGED
@@ -1553,7 +1553,7 @@ function BetterHtmlProvider({ value, plugins: pluginsToUse, children }) {
1553
1553
  const [loaders, setLoaders] = useState(value?.loaders ?? {});
1554
1554
  const [plugins] = useState(pluginsToUse ?? []);
1555
1555
  const [colorTheme, setColorTheme] = useState(
1556
- localStorage.getItem("theme") === "dark" ? "dark" : "light"
1556
+ localStorage.getItem("theme") === "dark" ? "dark" : value?.colorTheme ?? "light"
1557
1557
  );
1558
1558
  const readyValue = useMemo(
1559
1559
  () => ({
@@ -1606,7 +1606,7 @@ function BetterHtmlProvider({ value, plugins: pluginsToUse, children }) {
1606
1606
  const observer = new MutationObserver((mutations) => {
1607
1607
  mutations.forEach((mutation) => {
1608
1608
  if (mutation.type === "attributes") {
1609
- setColorTheme(html.getAttribute("data-theme") === "dark" ? "dark" : "light");
1609
+ setColorTheme(html.getAttribute("data-theme") === "dark" ? "dark" : value?.colorTheme ?? "light");
1610
1610
  }
1611
1611
  });
1612
1612
  });
@@ -2991,7 +2991,7 @@ function PageHeader({
2991
2991
  /* @__PURE__ */ jsxs6(
2992
2992
  Div_default.column,
2993
2993
  {
2994
- justifyContent: textAlign === "center" ? "center" : textAlign === "right" ? "flex-end" : void 0,
2994
+ alignItems: textAlign === "center" ? "center" : textAlign === "right" ? "flex-end" : void 0,
2995
2995
  flex: 1,
2996
2996
  gap: theme2.styles.gap / 2,
2997
2997
  children: [
@@ -5936,7 +5936,7 @@ var TableStyledComponent = styled10.table.withConfig({
5936
5936
  transition: ${props.theme.styles.transition};
5937
5937
 
5938
5938
  &:not(.isHeader):hover {
5939
- background-color: ${props.theme.colors.backgroundSecondary}20;
5939
+ filter: brightness(0.95);
5940
5940
  }
5941
5941
  ` : ""}
5942
5942