@loczer/storefront-sdk 0.231.0 → 0.232.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/LanguagePicker/index-D7_3voTe.js +83 -0
  2. package/dist/components/BookingBikeQuickAddCard/index.d.ts.map +1 -1
  3. package/dist/components/BookingBikeQuickAddCard/index.js +0 -3
  4. package/dist/components/BookingBikeVariantDialog/index.d.ts.map +1 -1
  5. package/dist/components/BookingBikeVariantDialog/index.js +7 -9
  6. package/dist/components/BookingPeriodSelector/components/BookingEndDateField.js +1 -1
  7. package/dist/components/BookingPeriodSelector/components/BookingEndTimeField.js +1 -1
  8. package/dist/components/BookingPeriodSelector/components/BookingStartDateField.js +1 -1
  9. package/dist/components/BookingPeriodSelector/components/BookingStartTimeField.js +1 -1
  10. package/dist/components/ContractSaleDocument/InvoiceDetails.d.ts.map +1 -1
  11. package/dist/components/ContractSaleDocument/InvoiceDetails.js +62 -56
  12. package/dist/components/Header/index.d.ts.map +1 -1
  13. package/dist/components/Header/index.js +56 -56
  14. package/dist/components/LanguageSelector/index.d.ts.map +1 -1
  15. package/dist/components/LanguageSelector/index.js +19 -64
  16. package/dist/i18n/en.d.ts +2 -0
  17. package/dist/i18n/en.d.ts.map +1 -1
  18. package/dist/i18n/en.js +3 -1
  19. package/dist/i18n/fr.d.ts +2 -0
  20. package/dist/i18n/fr.d.ts.map +1 -1
  21. package/dist/i18n/fr.js +3 -1
  22. package/dist/index.d.ts +5 -0
  23. package/dist/lib/cart.d.ts +1 -0
  24. package/dist/lib/cart.d.ts.map +1 -1
  25. package/dist/lib/cart.js +2 -0
  26. package/dist/pages/BookingPage.d.ts.map +1 -1
  27. package/dist/pages/BookingPage.js +292 -292
  28. package/dist/pages/CheckoutPage.d.ts.map +1 -1
  29. package/dist/pages/CheckoutPage.js +107 -103
  30. package/dist/pages/ContractSaleDocumentPage.d.ts.map +1 -1
  31. package/dist/pages/ContractSaleDocumentPage.js +117 -171
  32. package/dist/pages/ProductPage.d.ts.map +1 -1
  33. package/dist/pages/ProductPage.js +31 -31
  34. package/dist/pages/checkout/components/CheckoutLoadingSkeleton.d.ts +7 -0
  35. package/dist/pages/checkout/components/CheckoutLoadingSkeleton.d.ts.map +1 -0
  36. package/dist/pages/checkout/components/CheckoutLoadingSkeleton.js +105 -0
  37. package/dist/storefront.css +1 -1
  38. package/package.json +1 -1
  39. package/dist/chunks/pkg/ui/dist/{MorphingModalWizard-j1CgFGLe.js → MorphingModalWizard-Q8O5Rjfq.js} +1 -1
@@ -0,0 +1,105 @@
1
+ import { BookingFlowPageLayout as e } from "../../../components/BookingFlowPageLayout/index.js";
2
+ import { jsx as t, jsxs as n } from "react/jsx-runtime";
3
+ import { useTranslation as r } from "react-i18next";
4
+ import { cn as i } from "@rpcbase/ui";
5
+ //#region src/pages/checkout/components/CheckoutLoadingSkeleton.tsx
6
+ var a = ({ className: e }) => /* @__PURE__ */ t("div", { className: i("rounded bg-slate-200", e) });
7
+ function o({ bookingPath: i, checkoutPath: o }) {
8
+ let { t: s } = r();
9
+ return /* @__PURE__ */ t(e, {
10
+ currentStep: "checkout",
11
+ bookingPath: i,
12
+ checkoutPath: o,
13
+ backPath: i,
14
+ backLabel: s("back_to_booking"),
15
+ children: /* @__PURE__ */ n("div", {
16
+ className: "grid animate-pulse gap-6 lg:grid-cols-12",
17
+ "data-testid": "checkout-cart-skeleton",
18
+ role: "status",
19
+ "aria-busy": "true",
20
+ children: [
21
+ /* @__PURE__ */ t("span", {
22
+ className: "sr-only",
23
+ children: s("cart_loading")
24
+ }),
25
+ /* @__PURE__ */ n("div", {
26
+ className: "lg:col-span-7",
27
+ "aria-hidden": "true",
28
+ children: [
29
+ /* @__PURE__ */ t(a, { className: "h-7 w-72 max-w-full" }),
30
+ /* @__PURE__ */ n("div", {
31
+ className: "mt-5 overflow-hidden rounded-xl border border-slate-200 bg-white shadow-sm",
32
+ children: [/* @__PURE__ */ n("div", {
33
+ className: "grid gap-2 border-b border-slate-200 px-4 py-4",
34
+ children: [/* @__PURE__ */ t(a, { className: "h-4 w-28" }), /* @__PURE__ */ t(a, { className: "h-3 w-3/4" })]
35
+ }), /* @__PURE__ */ n("div", {
36
+ className: "grid gap-3 px-4 py-4",
37
+ children: [[
38
+ "full_name",
39
+ "email",
40
+ "phone"
41
+ ].map((e) => /* @__PURE__ */ n("div", {
42
+ className: "grid gap-2",
43
+ children: [/* @__PURE__ */ t(a, { className: "h-3 w-20" }), /* @__PURE__ */ t(a, { className: "h-10 w-full" })]
44
+ }, e)), /* @__PURE__ */ n("div", {
45
+ className: "grid gap-2",
46
+ children: [/* @__PURE__ */ t(a, { className: "h-3 w-16" }), /* @__PURE__ */ t(a, { className: "h-24 w-full" })]
47
+ })]
48
+ })]
49
+ }),
50
+ /* @__PURE__ */ t(a, { className: "mt-8 h-11 w-52" })
51
+ ]
52
+ }),
53
+ /* @__PURE__ */ t("div", {
54
+ className: "lg:col-span-5",
55
+ "aria-hidden": "true",
56
+ children: /* @__PURE__ */ n("div", {
57
+ className: "overflow-hidden rounded-xl border border-slate-200 bg-white shadow-sm",
58
+ children: [/* @__PURE__ */ n("div", {
59
+ className: "grid gap-2 border-b border-slate-200 px-4 py-4",
60
+ children: [/* @__PURE__ */ n("div", {
61
+ className: "flex items-center justify-between gap-3",
62
+ children: [/* @__PURE__ */ t(a, { className: "h-4 w-20" }), /* @__PURE__ */ t(a, { className: "h-7 w-16 rounded-md" })]
63
+ }), /* @__PURE__ */ t(a, { className: "h-3 w-40" })]
64
+ }), /* @__PURE__ */ n("div", {
65
+ className: "grid gap-4 p-4",
66
+ children: [
67
+ /* @__PURE__ */ n("div", {
68
+ className: "flex items-start justify-between gap-4",
69
+ children: [/* @__PURE__ */ n("div", {
70
+ className: "grid flex-1 gap-2",
71
+ children: [
72
+ /* @__PURE__ */ t(a, { className: "h-4 w-36" }),
73
+ /* @__PURE__ */ t(a, { className: "h-3 w-24" }),
74
+ /* @__PURE__ */ t(a, { className: "h-3 w-32" })
75
+ ]
76
+ }), /* @__PURE__ */ t(a, { className: "h-10 w-16" })]
77
+ }),
78
+ /* @__PURE__ */ n("div", {
79
+ className: "grid gap-3 border-t border-slate-200 pt-4",
80
+ children: [/* @__PURE__ */ t(a, { className: "h-4 w-24" }), /* @__PURE__ */ n("div", {
81
+ className: "flex gap-2",
82
+ children: [/* @__PURE__ */ t(a, { className: "h-10 flex-1" }), /* @__PURE__ */ t(a, { className: "h-10 w-20" })]
83
+ })]
84
+ }),
85
+ /* @__PURE__ */ t("div", {
86
+ className: "grid gap-3 border-t border-slate-200 pt-4",
87
+ children: [
88
+ "subtotal",
89
+ "vat",
90
+ "total"
91
+ ].map((e) => /* @__PURE__ */ n("div", {
92
+ className: "flex items-center justify-between gap-3",
93
+ children: [/* @__PURE__ */ t(a, { className: "h-3 w-24" }), /* @__PURE__ */ t(a, { className: "h-3 w-16" })]
94
+ }, e))
95
+ })
96
+ ]
97
+ })]
98
+ })
99
+ })
100
+ ]
101
+ })
102
+ });
103
+ }
104
+ //#endregion
105
+ export { o as CheckoutLoadingSkeleton };