@idkwebsites/components 0.1.19 → 0.1.20

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.cjs CHANGED
@@ -1782,7 +1782,8 @@ function BookingWidgetPanel({
1782
1782
  closeIcon,
1783
1783
  categoryIcons,
1784
1784
  stepTitles,
1785
- linkComponent: LinkComp = DefaultLink
1785
+ linkComponent: LinkComp = DefaultLink,
1786
+ mobileHeader
1786
1787
  } = {}) {
1787
1788
  const widgetRef = (0, import_react9.useRef)(null);
1788
1789
  const formRef = (0, import_react9.useRef)(null);
@@ -2055,10 +2056,12 @@ function BookingWidgetPanel({
2055
2056
  svc.id
2056
2057
  );
2057
2058
  };
2059
+ const useLegacyNav = !mobileHeader && navLinks.length > 0;
2058
2060
  return /* @__PURE__ */ (0, import_jsx_runtime9.jsxs)("div", { className: "bw", ref: widgetRef, children: [
2061
+ mobileHeader && /* @__PURE__ */ (0, import_jsx_runtime9.jsx)("div", { className: "bw-mobile-header", children: mobileHeader }),
2059
2062
  /* @__PURE__ */ (0, import_jsx_runtime9.jsxs)("div", { className: "bw-topbar", children: [
2060
2063
  /* @__PURE__ */ (0, import_jsx_runtime9.jsx)("div", { className: "bw-dots", children: Array.from({ length: 4 }, (_, i) => /* @__PURE__ */ (0, import_jsx_runtime9.jsx)("div", { className: `bw-dot ${mobileStep > i ? "is-filled" : ""}` }, i)) }),
2061
- navLinks.length > 0 && /* @__PURE__ */ (0, import_jsx_runtime9.jsx)(
2064
+ useLegacyNav && /* @__PURE__ */ (0, import_jsx_runtime9.jsx)(
2062
2065
  "button",
2063
2066
  {
2064
2067
  className: "bw-topbar-menu",
@@ -2068,7 +2071,7 @@ function BookingWidgetPanel({
2068
2071
  }
2069
2072
  )
2070
2073
  ] }),
2071
- navLinks.length > 0 && /* @__PURE__ */ (0, import_jsx_runtime9.jsx)(import_framer_motion.AnimatePresence, { children: navOpen && /* @__PURE__ */ (0, import_jsx_runtime9.jsx)(
2074
+ useLegacyNav && /* @__PURE__ */ (0, import_jsx_runtime9.jsx)(import_framer_motion.AnimatePresence, { children: navOpen && /* @__PURE__ */ (0, import_jsx_runtime9.jsx)(
2072
2075
  import_framer_motion.motion.div,
2073
2076
  {
2074
2077
  className: "bw-nav-overlay",