@loczer/storefront-sdk 0.240.0 → 0.242.0

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.
@@ -1,6 +1,6 @@
1
1
  import { timeOfDaySchema as e } from "./chunks/pkg/booking-engine/dist/schemas/shop-opening-hours-BlLD1gfz.js";
2
2
  import { publicBookingEngineConfigurationSchema as t } from "./chunks/pkg/booking-engine/dist/schemas/public-booking-engine-configuration-BwWn9aK0.js";
3
- import "./chunks/pkg/booking-engine/dist/schemas-lb2iTDMd.js";
3
+ import "./chunks/pkg/booking-engine/dist/schemas-B82mPOxs.js";
4
4
  import { STOREFRONT_I18N_LANGUAGE_CODES as n } from "./i18n/languages.js";
5
5
  import { z as r } from "zod";
6
6
  //#region src/storefrontSchemas.ts
package/dist/ui/drawer.js CHANGED
@@ -14,12 +14,12 @@ var c = 250, l = n.createContext(null), u = () => {
14
14
  function d({ open: e, defaultOpen: t = !1, onOpenChange: i, direction: a = "bottom", children: o, modal: s = !0, dismissible: u = !0, fixed: d, repositionInputs: f, snapPoints: p, activeSnapPoint: m, setActiveSnapPoint: h, lockScroll: g = !0 }) {
15
15
  let [_, v] = n.useState(t), y = e !== void 0, b = y ? e : _, [x, S] = n.useState(b);
16
16
  return n.useEffect(() => {
17
- if (!b || !g || typeof document > "u") return;
17
+ if (!x || !g || typeof document > "u") return;
18
18
  let e = document.body.style.overflow;
19
19
  return document.body.style.overflow = "hidden", () => {
20
20
  document.body.style.overflow = e;
21
21
  };
22
- }, [g, b]), n.useEffect(() => {
22
+ }, [g, x]), n.useEffect(() => {
23
23
  if (b) {
24
24
  S(!0);
25
25
  return;
@@ -83,7 +83,7 @@ var h = n.forwardRef(({ className: e, onClick: t, onPointerDownOutside: n, ...i
83
83
  ref: o,
84
84
  "data-slot": "drawer-overlay",
85
85
  "data-state": s ? "open" : "closed",
86
- className: a("fixed inset-0 z-50 bg-black/50 duration-200 data-[state=open]:animate-in data-[state=closed]:pointer-events-none data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0", e),
86
+ className: a("fixed inset-0 z-50 bg-black/50 duration-200 data-[state=open]:animate-in data-[state=closed]:pointer-events-none data-[state=closed]:animate-out data-[state=closed]:fill-mode-forwards data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0", e),
87
87
  onPointerDown: (e) => {
88
88
  n?.({ detail: { originalEvent: e.nativeEvent } });
89
89
  },
@@ -109,7 +109,7 @@ var g = n.forwardRef(({ className: e, children: t, closeButtonClassName: s, clos
109
109
  "data-state": y ? "open" : "closed",
110
110
  role: "dialog",
111
111
  "aria-modal": "true",
112
- className: a("group/drawer-content bg-background fixed z-50 flex h-auto flex-col duration-200 data-[state=open]:animate-in data-[state=closed]:pointer-events-none data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0", v === "top" && "inset-x-0 top-0 mb-24 max-h-[80vh] rounded-b-lg border-b data-[state=open]:slide-in-from-top data-[state=closed]:slide-out-to-top", v === "bottom" && "inset-x-0 bottom-0 max-h-[95dvh] rounded-t-lg border-t data-[state=open]:slide-in-from-bottom data-[state=closed]:slide-out-to-bottom", v === "right" && "inset-y-0 right-0 w-3/4 border-l data-[state=open]:slide-in-from-right data-[state=closed]:slide-out-to-right sm:max-w-sm", v === "left" && "inset-y-0 left-0 w-3/4 border-r data-[state=open]:slide-in-from-left data-[state=closed]:slide-out-to-left sm:max-w-sm", e),
112
+ className: a("group/drawer-content bg-background fixed z-50 flex h-auto flex-col duration-200 data-[state=open]:animate-in data-[state=closed]:pointer-events-none data-[state=closed]:animate-out data-[state=closed]:fill-mode-forwards data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0", v === "top" && "inset-x-0 top-0 mb-24 max-h-[80vh] rounded-b-lg border-b data-[state=open]:slide-in-from-top data-[state=closed]:slide-out-to-top", v === "bottom" && "inset-x-0 bottom-0 max-h-[95dvh] rounded-t-lg border-t data-[state=open]:slide-in-from-bottom data-[state=closed]:slide-out-to-bottom", v === "right" && "inset-y-0 right-0 w-3/4 border-l data-[state=open]:slide-in-from-right data-[state=closed]:slide-out-to-right sm:max-w-sm", v === "left" && "inset-y-0 left-0 w-3/4 border-r data-[state=open]:slide-in-from-left data-[state=closed]:slide-out-to-left sm:max-w-sm", e),
113
113
  ...g,
114
114
  children: [
115
115
  /* @__PURE__ */ r("div", { className: "bg-muted mx-auto mt-4 hidden h-2 w-[100px] shrink-0 rounded-full group-data-[drawer-direction=bottom]/drawer-content:block" }),
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@loczer/storefront-sdk",
3
- "version": "0.240.0",
3
+ "version": "0.242.0",
4
4
  "publishConfig": {
5
5
  "access": "public",
6
6
  "registry": "https://registry.npmjs.org/"