@julseb-lib/react 1.0.6 → 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
  };
@@ -69469,7 +69469,8 @@ var Header = ({
69469
69469
  `${genBgAllColors[navMobileBackground ?? "primary-500"]} md:bg-transparent`,
69470
69470
  navDesktopPosition === "left" && "grow",
69471
69471
  navMobileVariant === "drawer" && [
69472
- "top-[56px] md:top-[unset] w-[70%] md:w-fit h-[calc(100svh-56px)] md:h-[unset]",
69472
+ "top-[56px] md:top-[unset] h-[calc(100svh-56px)] md:h-[unset]",
69473
+ "w-[70%] md:w-fit",
69473
69474
  navDesktopPosition === "left" ? isOpen ? "left-0 md:left-[unset]" : "left-[-70%] md:left-[unset]" : isOpen ? "right-0 md:right-[unset]" : "right-[-70%] md:right-[unset]"
69474
69475
  ],
69475
69476
  navMobileVariant === "full" && [
@@ -69678,7 +69679,7 @@ var Meta = ({
69678
69679
  };
69679
69680
 
69680
69681
  // src/lib/components/PageLayout/PageLayout.tsx
69681
- import "react";
69682
+ import { isValidElement } from "react";
69682
69683
  import { Fragment as Fragment16, jsx as jsx369, jsxs as jsxs295 } from "react/jsx-runtime";
69683
69684
  var PageLayout = ({
69684
69685
  children,
@@ -69692,9 +69693,9 @@ var PageLayout = ({
69692
69693
  }) => {
69693
69694
  return /* @__PURE__ */ jsxs295(Fragment16, { children: [
69694
69695
  meta && /* @__PURE__ */ jsx369(Meta, { ...meta }),
69695
- header && /* @__PURE__ */ jsx369(Header, { ...header }),
69696
+ isValidElement(header) ? header : /* @__PURE__ */ jsx369(Header, { ...header }),
69696
69697
  !noWrapper && /* @__PURE__ */ jsx369(Wrapper, { ...wrapperProps, children: !noMain ? /* @__PURE__ */ jsx369(Main, { ...mainProps, children }) : children }),
69697
- footer && /* @__PURE__ */ jsx369(Footer, { ...footer })
69698
+ isValidElement(footer) ? footer : /* @__PURE__ */ jsx369(Footer, { ...footer })
69698
69699
  ] });
69699
69700
  };
69700
69701