@asteby/storefront-react 0.24.0 → 0.25.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/account.cjs +9 -1
- package/dist/account.cjs.map +1 -1
- package/dist/account.css +8 -0
- package/dist/account.d.cts +3 -1
- package/dist/account.d.ts +3 -1
- package/dist/account.js +9 -2
- package/dist/account.js.map +1 -1
- package/package.json +2 -2
package/dist/account.cjs
CHANGED
|
@@ -1752,6 +1752,10 @@ function ShipmentCard({ shipment, testMode = "hide", eventsPreview = 3, renderCa
|
|
|
1752
1752
|
/* @__PURE__ */ jsxRuntime.jsxs("header", { className: cx.header, "data-sf-shipment-header": true, children: [
|
|
1753
1753
|
renderCarrierMark && !test ? /* @__PURE__ */ jsxRuntime.jsx("span", { "data-sf-shipment-mark": true, children: renderCarrierMark(shipment) }) : null,
|
|
1754
1754
|
/* @__PURE__ */ jsxRuntime.jsxs(Heading, { id: titleId, className: cx.carrier, "data-sf-shipment-title": true, children: [
|
|
1755
|
+
carrier && !test ? /* @__PURE__ */ jsxRuntime.jsxs("span", { "data-sf-shipment-eyebrow": true, children: [
|
|
1756
|
+
m["shipment.carrier"],
|
|
1757
|
+
/* @__PURE__ */ jsxRuntime.jsx(Hidden, { children: ": " })
|
|
1758
|
+
] }) : null,
|
|
1755
1759
|
isReturn ? m["shipment.return"] : carrier ?? m["shipment.title"],
|
|
1756
1760
|
isReturn && carrier ? /* @__PURE__ */ jsxRuntime.jsxs(jsxRuntime.Fragment, { children: [
|
|
1757
1761
|
" \xB7 ",
|
|
@@ -2026,6 +2030,9 @@ var KEYWORDS = [
|
|
|
2026
2030
|
];
|
|
2027
2031
|
var BRANDS = { visa: "Visa", mastercard: "Mastercard", master: "Mastercard", amex: "American Express", american_express: "American Express", carnet: "Carnet", discover: "Discover" };
|
|
2028
2032
|
var RAW = /^[A-Za-z0-9_.:-]+(?: [A-Za-z0-9_.:-]+)?$/;
|
|
2033
|
+
function paymentMethodKey(p) {
|
|
2034
|
+
return keyOf(p);
|
|
2035
|
+
}
|
|
2029
2036
|
function keyOf(p) {
|
|
2030
2037
|
const fam = typeof p.family === "string" ? p.family.toLowerCase() : "";
|
|
2031
2038
|
const byLabel = () => {
|
|
@@ -2102,7 +2109,7 @@ function PaymentSummary({ payments, headingLevel = 3, methodLabel, classNames: c
|
|
|
2102
2109
|
const Heading = `h${headingLevel}`;
|
|
2103
2110
|
return /* @__PURE__ */ jsxRuntime.jsxs("section", { className: cx.root, "aria-labelledby": titleId, "data-sf-payments": true, children: [
|
|
2104
2111
|
/* @__PURE__ */ jsxRuntime.jsx(Heading, { id: titleId, className: cx.title, children: m["payment.title"] }),
|
|
2105
|
-
/* @__PURE__ */ jsxRuntime.jsx("ul", { className: cx.list, children: items.map((p, i) => /* @__PURE__ */ jsxRuntime.jsxs("li", { className: cx.item, "data-sf-payment": true, "data-sf-payment-status": typeof p.status === "string" ? p.status : "unknown", children: [
|
|
2112
|
+
/* @__PURE__ */ jsxRuntime.jsx("ul", { className: cx.list, children: items.map((p, i) => /* @__PURE__ */ jsxRuntime.jsxs("li", { className: cx.item, "data-sf-payment": true, "data-sf-payment-method-key": paymentMethodKey(p) ?? "unknown", "data-sf-payment-status": typeof p.status === "string" ? p.status : "unknown", children: [
|
|
2106
2113
|
/* @__PURE__ */ jsxRuntime.jsx("span", { "data-sf-payment-method": true, children: paymentLabel(p, m, methodLabel ? { override: methodLabel } : {}) }),
|
|
2107
2114
|
moneyText(p.amount, locale) ? /* @__PURE__ */ jsxRuntime.jsxs(jsxRuntime.Fragment, { children: [
|
|
2108
2115
|
" \xB7 ",
|
|
@@ -2281,6 +2288,7 @@ exports.code128Modules = code128Modules;
|
|
|
2281
2288
|
exports.enumText = enumText;
|
|
2282
2289
|
exports.lineImage = lineImage;
|
|
2283
2290
|
exports.paymentLabel = paymentLabel;
|
|
2291
|
+
exports.paymentMethodKey = paymentMethodKey;
|
|
2284
2292
|
exports.postPurchaseAccountPromptMessages = postPurchaseAccountPromptMessages;
|
|
2285
2293
|
exports.productInitials = productInitials;
|
|
2286
2294
|
exports.stageTone = stageTone;
|