@julseb-lib/react 1.0.7 → 1.0.8

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.js CHANGED
@@ -69373,7 +69373,7 @@ var HeaderSearch = ({ search, handleClose }) => {
69373
69373
  },
69374
69374
  className: clsx("w-full max-w-(--form-max-width)", "search-form"),
69375
69375
  style: { ["--form-max-width"]: stringifyPx2(maxWidth2) },
69376
- children: /* @__PURE__ */ jsx365(
69376
+ children: /* @__PURE__ */ jsx365("search", { children: /* @__PURE__ */ jsx365(
69377
69377
  Input,
69378
69378
  {
69379
69379
  type: "search",
@@ -69389,7 +69389,7 @@ var HeaderSearch = ({ search, handleClose }) => {
69389
69389
  className: "search-input",
69390
69390
  clearSearch
69391
69391
  }
69392
- )
69392
+ ) })
69393
69393
  }
69394
69394
  );
69395
69395
  };
@@ -69679,7 +69679,7 @@ var Meta = ({
69679
69679
  };
69680
69680
 
69681
69681
  // src/lib/components/PageLayout/PageLayout.tsx
69682
- import "react";
69682
+ import { isValidElement } from "react";
69683
69683
  import { Fragment as Fragment16, jsx as jsx369, jsxs as jsxs295 } from "react/jsx-runtime";
69684
69684
  var PageLayout = ({
69685
69685
  children,
@@ -69693,9 +69693,9 @@ var PageLayout = ({
69693
69693
  }) => {
69694
69694
  return /* @__PURE__ */ jsxs295(Fragment16, { children: [
69695
69695
  meta && /* @__PURE__ */ jsx369(Meta, { ...meta }),
69696
- header && /* @__PURE__ */ jsx369(Header, { ...header }),
69696
+ isValidElement(header) ? header : /* @__PURE__ */ jsx369(Header, { ...header }),
69697
69697
  !noWrapper && /* @__PURE__ */ jsx369(Wrapper, { ...wrapperProps, children: !noMain ? /* @__PURE__ */ jsx369(Main, { ...mainProps, children }) : children }),
69698
- footer && /* @__PURE__ */ jsx369(Footer, { ...footer })
69698
+ isValidElement(footer) ? footer : /* @__PURE__ */ jsx369(Footer, { ...footer })
69699
69699
  ] });
69700
69700
  };
69701
69701