@loczer/storefront-sdk 0.196.0 → 0.198.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.
Files changed (39) hide show
  1. package/dist/chunks/pkg/ui/dist/{MorphingModalWizard-j1CgFGLe.js → MorphingModalWizard-DOH1GYVR.js} +1 -0
  2. package/dist/components/BikeProductCard/index.d.ts +2 -1
  3. package/dist/components/BikeProductCard/index.d.ts.map +1 -1
  4. package/dist/components/BikeProductCard/index.js +23 -23
  5. package/dist/components/BookingBikeQuickAddCard/index.d.ts +19 -0
  6. package/dist/components/BookingBikeQuickAddCard/index.d.ts.map +1 -0
  7. package/dist/components/BookingBikeQuickAddCard/index.js +174 -0
  8. package/dist/components/BookingBikeVariantDialog/index.d.ts +5 -2
  9. package/dist/components/BookingBikeVariantDialog/index.d.ts.map +1 -1
  10. package/dist/components/BookingBikeVariantDialog/index.js +76 -90
  11. package/dist/components/BookingPeriodSelector/components/BookingEndDateField.js +1 -1
  12. package/dist/components/BookingPeriodSelector/components/BookingEndTimeField.js +3 -3
  13. package/dist/components/BookingPeriodSelector/components/BookingStartDateField.js +1 -1
  14. package/dist/components/BookingPeriodSelector/components/BookingStartTimeField.js +3 -3
  15. package/dist/components/BookingPeriodSelector/components/BookingTimeSlotsStatus.d.ts.map +1 -1
  16. package/dist/components/BookingPeriodSelector/components/BookingTimeSlotsStatus.js +4 -4
  17. package/dist/components/BookingPeriodSelector/components/internal/BookingHourPickerField.d.ts +1 -1
  18. package/dist/components/BookingPeriodSelector/components/internal/BookingHourPickerField.d.ts.map +1 -1
  19. package/dist/components/BookingPeriodSelector/components/internal/BookingHourPickerField.js +6 -20
  20. package/dist/components/BookingPeriodSelector/components/internal/StorefrontHourPickerField.d.ts +0 -2
  21. package/dist/components/BookingPeriodSelector/components/internal/StorefrontHourPickerField.d.ts.map +1 -1
  22. package/dist/components/BookingPeriodSelector/components/internal/StorefrontHourPickerField.js +163 -179
  23. package/dist/components/PlatformFooter/index.js +1 -1
  24. package/dist/i18n/en.d.ts +2 -0
  25. package/dist/i18n/en.d.ts.map +1 -1
  26. package/dist/i18n/en.js +2 -0
  27. package/dist/i18n/fr.d.ts +2 -0
  28. package/dist/i18n/fr.d.ts.map +1 -1
  29. package/dist/i18n/fr.js +2 -0
  30. package/dist/index.d.ts +4 -2
  31. package/dist/pages/BookingPage.d.ts.map +1 -1
  32. package/dist/pages/BookingPage.js +310 -388
  33. package/dist/pages/ErrorPage.d.ts.map +1 -1
  34. package/dist/pages/ErrorPage.js +13 -13
  35. package/dist/pages/NotFoundPage.js +1 -1
  36. package/dist/pages/checkout/components/CheckoutPaymentSummaryCard.js +1 -1
  37. package/dist/storefront.css +1 -1
  38. package/dist/ui/button.js +3 -3
  39. package/package.json +2 -1
@@ -1 +1 @@
1
- {"version":3,"file":"ErrorPage.d.ts","sourceRoot":"","sources":["../../src/pages/ErrorPage.tsx"],"names":[],"mappings":"AA4HA,MAAM,CAAC,OAAO,UAAU,SAAS,4CA2EhC"}
1
+ {"version":3,"file":"ErrorPage.d.ts","sourceRoot":"","sources":["../../src/pages/ErrorPage.tsx"],"names":[],"mappings":"AA4HA,MAAM,CAAC,OAAO,UAAU,SAAS,4CA+EhC"}
@@ -43,8 +43,8 @@ function _(e) {
43
43
  description: "store_unavailable_description"
44
44
  };
45
45
  case "unknown": return {
46
- title: "store_not_found_title",
47
- description: "store_not_found_description"
46
+ title: "generic_not_found_title",
47
+ description: "generic_not_found_description"
48
48
  };
49
49
  }
50
50
  }
@@ -52,14 +52,14 @@ function v(e) {
52
52
  return null;
53
53
  }
54
54
  function y() {
55
- let { t: e } = c(), { storeSlug: a } = o(), f = s(), p = h(f), m = p === 404, y = g(f, p), b = y !== null, x = v(f), S = y ? _(y.status) : null, C = S?.title ?? (m ? "not_found_title" : "error_title"), w = S?.description ?? (m ? "not_found_description" : "error_description"), T = y?.status === "moved" ? y.replacementSlug : void 0, E = b ? T ? `/${encodeURIComponent(T)}` : null : `/${a ?? ""}`, D = T ? "go_to_moved_storefront" : "back_to_home";
55
+ let { t: e } = c(), { storeSlug: a } = o(), f = s(), p = h(f), m = p === 404, y = g(f, p), b = y !== null, x = y !== null && y.status !== "unknown", S = v(f), C = y ? _(y.status) : null, w = C?.title ?? (m ? "not_found_title" : "error_title"), T = C?.description ?? (m ? "not_found_description" : "error_description"), E = y?.status === "moved" ? y.replacementSlug : void 0, D = x ? E ? `/${encodeURIComponent(E)}` : null : y?.status === "unknown" ? null : `/${a ?? ""}`, O = E ? "go_to_moved_storefront" : "back_to_home";
56
56
  return t(() => {
57
57
  document.documentElement.setAttribute("data-hydrated", "true"), b && document.querySelectorAll("vite-error-overlay").forEach((e) => {
58
58
  e.remove();
59
- }), m || (console.error(f), console.error(x));
59
+ }), m || (console.error(f), console.error(S));
60
60
  }, [
61
61
  f,
62
- x,
62
+ S,
63
63
  m,
64
64
  b
65
65
  ]), /* @__PURE__ */ n("div", {
@@ -79,27 +79,27 @@ function y() {
79
79
  children: [
80
80
  /* @__PURE__ */ n("h1", {
81
81
  className: "text-2xl font-semibold tracking-tight",
82
- children: /* @__PURE__ */ n("span", { children: e(C) })
82
+ children: /* @__PURE__ */ n("span", { children: e(w) })
83
83
  }),
84
84
  /* @__PURE__ */ n("p", {
85
85
  className: "text-muted-foreground",
86
- children: /* @__PURE__ */ n("span", { children: e(w, { store: a }) })
86
+ children: /* @__PURE__ */ n("span", { children: e(T, { store: a }) })
87
87
  }),
88
- b ? /* @__PURE__ */ n("p", {
88
+ x ? /* @__PURE__ */ n("p", {
89
89
  className: "text-sm text-muted-foreground",
90
90
  children: /* @__PURE__ */ n("span", { children: e("store_unavailable_contact") })
91
91
  }) : null
92
92
  ]
93
93
  }),
94
- E ? /* @__PURE__ */ n("div", {
94
+ D ? /* @__PURE__ */ n("div", {
95
95
  className: "flex justify-center",
96
96
  children: /* @__PURE__ */ r(i, {
97
- to: E,
98
- className: "inline-flex items-center gap-2 rounded-md bg-primary px-4 py-2 text-sm font-medium text-primary-foreground shadow transition hover:bg-primary/90 focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2",
99
- children: [n(T ? d : u, {
97
+ to: D,
98
+ className: "inline-flex items-center gap-2 rounded-xl bg-primary px-4 py-2 text-sm font-medium text-primary-foreground shadow transition hover:bg-primary/90 focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2",
99
+ children: [n(E ? d : u, {
100
100
  className: "h-4 w-4",
101
101
  "aria-hidden": "true"
102
- }), /* @__PURE__ */ n("span", { children: e(D) })]
102
+ }), /* @__PURE__ */ n("span", { children: e(O) })]
103
103
  })
104
104
  }) : null
105
105
  ]
@@ -31,7 +31,7 @@ function s() {
31
31
  className: "flex justify-center",
32
32
  children: /* @__PURE__ */ t(n, {
33
33
  to: `/${c ?? ""}`,
34
- className: "inline-flex items-center gap-2 rounded-md bg-primary px-4 py-2 text-sm font-medium text-primary-foreground shadow transition hover:bg-primary/90 focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2",
34
+ className: "inline-flex items-center gap-2 rounded-xl bg-primary px-4 py-2 text-sm font-medium text-primary-foreground shadow transition hover:bg-primary/90 focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2",
35
35
  children: [/* @__PURE__ */ e(o, {
36
36
  className: "h-4 w-4",
37
37
  "aria-hidden": "true"
@@ -143,7 +143,7 @@ function s({ estimatedTotalLabel: s, couponCode: c, discountAmountLabel: l, tota
143
143
  type: "button",
144
144
  variant: S === t.id ? "default" : "outline",
145
145
  disabled: C,
146
- className: "h-9 rounded-full px-4 text-xs",
146
+ className: "h-9 px-4 text-xs",
147
147
  onClick: () => {
148
148
  w(t.id);
149
149
  },