@loczer/storefront-sdk 0.221.0 → 0.223.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.
- package/dist/StorefrontContext.d.ts +2 -2
- package/dist/StorefrontProvider.d.ts +2 -2
- package/dist/components/Header/index.d.ts.map +1 -1
- package/dist/components/Header/index.js +118 -126
- package/dist/components/LanguageSelector/index.d.ts +7 -0
- package/dist/components/LanguageSelector/index.d.ts.map +1 -0
- package/dist/components/LanguageSelector/index.js +69 -0
- package/dist/components/StorefrontCartPanel/index.d.ts +2 -8
- package/dist/components/StorefrontCartPanel/index.d.ts.map +1 -1
- package/dist/components/StorefrontCartPanel/index.js +65 -107
- package/dist/i18n/I18nProvider.d.ts +3 -2
- package/dist/i18n/I18nProvider.d.ts.map +1 -1
- package/dist/i18n/I18nProvider.js +61 -64
- package/dist/i18n/en.d.ts +2 -2
- package/dist/i18n/en.js +3 -3
- package/dist/i18n/fr.d.ts +2 -2
- package/dist/i18n/fr.js +3 -3
- package/dist/i18n/languages.d.ts +15 -0
- package/dist/i18n/languages.d.ts.map +1 -0
- package/dist/i18n/languages.js +26 -0
- package/dist/index.d.ts +33 -24
- package/dist/index.js +50 -49
- package/dist/lib/cartSummary.d.ts +2 -5
- package/dist/lib/cartSummary.d.ts.map +1 -1
- package/dist/lib/cartSummary.js +5 -11
- package/dist/lib/checkoutPaymentDecision.d.ts +1 -0
- package/dist/lib/checkoutPaymentDecision.d.ts.map +1 -1
- package/dist/lib/checkoutPaymentDecision.js +1 -0
- package/dist/pages/BookingPage.d.ts.map +1 -1
- package/dist/pages/BookingPage.js +150 -148
- package/dist/pages/CheckoutPage.d.ts.map +1 -1
- package/dist/pages/CheckoutPage.js +156 -155
- package/dist/pages/ContractSaleDocumentPage.d.ts +2 -3
- package/dist/pages/ContractSaleDocumentPage.d.ts.map +1 -1
- package/dist/pages/ContractSaleDocumentPage.js +18 -17
- package/dist/pages/checkout/components/CheckoutSummaryColumn.d.ts +2 -2
- package/dist/pages/checkout/components/CheckoutSummaryColumn.d.ts.map +1 -1
- package/dist/pages/checkout/components/CheckoutSummaryColumn.js +14 -15
- package/dist/storefront.css +1 -1
- package/dist/storefrontSchemas.d.ts +2 -2
- package/dist/storefrontSchemas.d.ts.map +1 -1
- package/dist/storefrontSchemas.js +95 -94
- package/package.json +1 -1
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"CheckoutSummaryColumn.d.ts","sourceRoot":"","sources":["../../../../src/pages/checkout/components/CheckoutSummaryColumn.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,OAAO,CAAA;AAG3C,OAAO,EAAE,mBAAmB,EAAE,MAAM,yCAAyC,CAAA;AAC7E,OAAO,EAAE,kBAAkB,EAAE,MAAM,sBAAsB,CAAA;AAGzD,KAAK,wBAAwB,GAAG,cAAc,CAAC,OAAO,mBAAmB,CAAC,CAAA;AAC1E,KAAK,uBAAuB,GAAG,cAAc,CAAC,OAAO,kBAAkB,CAAC,CAAA;AAExE,KAAK,0BAA0B,GAAG,IAAI,CACpC,wBAAwB,EACtB,OAAO,GACP,WAAW,GACX,
|
|
1
|
+
{"version":3,"file":"CheckoutSummaryColumn.d.ts","sourceRoot":"","sources":["../../../../src/pages/checkout/components/CheckoutSummaryColumn.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,OAAO,CAAA;AAG3C,OAAO,EAAE,mBAAmB,EAAE,MAAM,yCAAyC,CAAA;AAC7E,OAAO,EAAE,kBAAkB,EAAE,MAAM,sBAAsB,CAAA;AAGzD,KAAK,wBAAwB,GAAG,cAAc,CAAC,OAAO,mBAAmB,CAAC,CAAA;AAC1E,KAAK,uBAAuB,GAAG,cAAc,CAAC,OAAO,kBAAkB,CAAC,CAAA;AAExE,KAAK,0BAA0B,GAAG,IAAI,CACpC,wBAAwB,EACtB,OAAO,GACP,WAAW,GACX,eAAe,GACf,kBAAkB,GAClB,UAAU,CACb,GAAG;IACF,MAAM,CAAC,EAAE,uBAAuB,CAAA;IAChC,oBAAoB,EAAE,MAAM,CAAA;IAC5B,cAAc,EAAE,MAAM,CAAA;IACtB,YAAY,EAAE,MAAM,CAAA;IACpB,iBAAiB,EAAE,MAAM,CAAA;CAC1B,CAAA;AAED,wBAAgB,qBAAqB,CAAC,EACpC,KAAK,EACL,SAAS,EACT,aAAa,EACb,MAAM,EACN,oBAAoB,EACpB,cAAc,EACd,YAAY,EACZ,iBAAiB,EACjB,gBAAgB,EAChB,QAAQ,GACT,EAAE,0BAA0B,2CA+C5B"}
|
|
@@ -3,19 +3,18 @@ import { CheckoutCouponCard as t } from "./CheckoutCouponCard.js";
|
|
|
3
3
|
import { jsx as n, jsxs as r } from "react/jsx-runtime";
|
|
4
4
|
import { useTranslation as i } from "react-i18next";
|
|
5
5
|
//#region src/pages/checkout/components/CheckoutSummaryColumn.tsx
|
|
6
|
-
function a({ lines: a, itemCount: o,
|
|
7
|
-
let { t:
|
|
6
|
+
function a({ lines: a, itemCount: o, baseUnitLabel: s, coupon: c, bookingSubtotalLabel: l, vatAmountLabel: u, vatRateLabel: d, bookingTotalLabel: f, onQuantityChange: p, onRemove: m }) {
|
|
7
|
+
let { t: h } = i();
|
|
8
8
|
return /* @__PURE__ */ n("div", {
|
|
9
9
|
className: "lg:col-span-5",
|
|
10
10
|
children: /* @__PURE__ */ n(e, {
|
|
11
11
|
lines: a,
|
|
12
12
|
itemCount: o,
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
description: g("checkout_summary_description"),
|
|
13
|
+
baseUnitLabel: s,
|
|
14
|
+
title: h("checkout_summary_title"),
|
|
15
|
+
description: h("checkout_summary_description"),
|
|
17
16
|
editable: !0,
|
|
18
|
-
summaryAddon:
|
|
17
|
+
summaryAddon: c ? /* @__PURE__ */ n(t, { ...c }) : void 0,
|
|
19
18
|
pricingSummary: /* @__PURE__ */ r("dl", {
|
|
20
19
|
className: "grid border-t border-slate-200 pt-3 text-sm",
|
|
21
20
|
"data-testid": "checkout-booking-totals",
|
|
@@ -24,37 +23,37 @@ function a({ lines: a, itemCount: o, totalPerBaseUnitMinor: s, baseUnitLabel: c,
|
|
|
24
23
|
className: "flex items-center justify-between gap-3 py-1.5",
|
|
25
24
|
children: [/* @__PURE__ */ n("dt", {
|
|
26
25
|
className: "text-slate-700",
|
|
27
|
-
children: /* @__PURE__ */ n("span", { children:
|
|
26
|
+
children: /* @__PURE__ */ n("span", { children: h("checkout_booking_subtotal") })
|
|
28
27
|
}), /* @__PURE__ */ n("dd", {
|
|
29
28
|
className: "font-medium tabular-nums text-slate-900",
|
|
30
|
-
children: /* @__PURE__ */ n("span", { children:
|
|
29
|
+
children: /* @__PURE__ */ n("span", { children: l })
|
|
31
30
|
})]
|
|
32
31
|
}),
|
|
33
32
|
/* @__PURE__ */ r("div", {
|
|
34
33
|
className: "flex items-center justify-between gap-3 py-1.5",
|
|
35
34
|
children: [/* @__PURE__ */ n("dt", {
|
|
36
35
|
className: "text-slate-700",
|
|
37
|
-
children: /* @__PURE__ */ n("span", { children:
|
|
36
|
+
children: /* @__PURE__ */ n("span", { children: h("checkout_payment_vat", { rate: d }) })
|
|
38
37
|
}), /* @__PURE__ */ n("dd", {
|
|
39
38
|
className: "font-medium tabular-nums text-slate-900",
|
|
40
|
-
children: /* @__PURE__ */ n("span", { children:
|
|
39
|
+
children: /* @__PURE__ */ n("span", { children: u })
|
|
41
40
|
})]
|
|
42
41
|
}),
|
|
43
42
|
/* @__PURE__ */ r("div", {
|
|
44
43
|
className: "mt-1 flex items-center justify-between gap-3 border-t border-slate-200 pt-3",
|
|
45
44
|
children: [/* @__PURE__ */ n("dt", {
|
|
46
45
|
className: "font-semibold text-slate-950",
|
|
47
|
-
children: /* @__PURE__ */ n("span", { children:
|
|
46
|
+
children: /* @__PURE__ */ n("span", { children: h("checkout_estimated_total") })
|
|
48
47
|
}), /* @__PURE__ */ n("dd", {
|
|
49
48
|
className: "text-base font-bold tabular-nums tracking-tight text-slate-950",
|
|
50
|
-
children: /* @__PURE__ */ n("span", { children:
|
|
49
|
+
children: /* @__PURE__ */ n("span", { children: f })
|
|
51
50
|
})]
|
|
52
51
|
})
|
|
53
52
|
]
|
|
54
53
|
}),
|
|
55
54
|
stickyTopClassName: "top-32",
|
|
56
|
-
onQuantityChange:
|
|
57
|
-
onRemove:
|
|
55
|
+
onQuantityChange: p,
|
|
56
|
+
onRemove: m
|
|
58
57
|
})
|
|
59
58
|
});
|
|
60
59
|
}
|