@nok-integration/storefront-react 0.16.4 → 0.16.5
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/index.mjs +8 -28
- package/dist/standalone/storefront.mjs +8 -28
- package/package.json +1 -1
package/dist/index.mjs
CHANGED
|
@@ -5951,8 +5951,8 @@ function PriceBlock({
|
|
|
5951
5951
|
return /* @__PURE__ */ jsxs("div", { className: [styles$y.root, styles$y[size], styles$y[align], styles$y[variant]].join(" "), children: [
|
|
5952
5952
|
/* @__PURE__ */ jsx("span", { className: styles$y.price, children: format(price2) }),
|
|
5953
5953
|
hasCompare && /* @__PURE__ */ jsxs("span", { className: styles$y.compareAt, children: [
|
|
5954
|
-
/* @__PURE__ */ jsx("span", { className: "visually-hidden", children:
|
|
5955
|
-
format(compareAt2)
|
|
5954
|
+
/* @__PURE__ */ jsx("span", { className: "visually-hidden", children: `Was ${format(compareAt2)}` }),
|
|
5955
|
+
/* @__PURE__ */ jsx("span", { "aria-hidden": "true", children: format(compareAt2) })
|
|
5956
5956
|
] }),
|
|
5957
5957
|
hasCompare && variant === "badge" && pct !== void 0 && /* @__PURE__ */ jsx(SaleBadge, { pct })
|
|
5958
5958
|
] });
|
|
@@ -6289,15 +6289,9 @@ function OrderTrackingContent({ orderRef, locale: localeProp }) {
|
|
|
6289
6289
|
/* @__PURE__ */ jsxs("div", { className: styles$v.title, children: [
|
|
6290
6290
|
/* @__PURE__ */ jsx("h1", { className: styles$v.headline, children: order.headline }),
|
|
6291
6291
|
/* @__PURE__ */ jsxs("p", { className: styles$v.subtitle, children: [
|
|
6292
|
-
/* @__PURE__ */
|
|
6293
|
-
"Order #",
|
|
6294
|
-
shortRef$1(order.order_ref)
|
|
6295
|
-
] }),
|
|
6292
|
+
/* @__PURE__ */ jsx("span", { children: `Order #${shortRef$1(order.order_ref)}` }),
|
|
6296
6293
|
/* @__PURE__ */ jsx("span", { className: styles$v.dot, "aria-hidden": "true" }),
|
|
6297
|
-
/* @__PURE__ */
|
|
6298
|
-
"Placed ",
|
|
6299
|
-
formatPlaced$1(order.placed_at, locale)
|
|
6300
|
-
] })
|
|
6294
|
+
/* @__PURE__ */ jsx("span", { children: `Placed ${formatPlaced$1(order.placed_at, locale)}` })
|
|
6301
6295
|
] })
|
|
6302
6296
|
] }),
|
|
6303
6297
|
/* @__PURE__ */ jsxs("div", { className: styles$v.widget, children: [
|
|
@@ -6311,11 +6305,7 @@ function OrderTrackingContent({ orderRef, locale: localeProp }) {
|
|
|
6311
6305
|
rel: "noopener noreferrer",
|
|
6312
6306
|
children: [
|
|
6313
6307
|
"Track order",
|
|
6314
|
-
/* @__PURE__ */
|
|
6315
|
-
" (opens ",
|
|
6316
|
-
order.tracking.carrier,
|
|
6317
|
-
" in a new tab)"
|
|
6318
|
-
] })
|
|
6308
|
+
/* @__PURE__ */ jsx("span", { className: styles$v.srOnly, children: ` (opens ${order.tracking.carrier} in a new tab)` })
|
|
6319
6309
|
]
|
|
6320
6310
|
}
|
|
6321
6311
|
)
|
|
@@ -6529,10 +6519,7 @@ function OrderCard({
|
|
|
6529
6519
|
const body2 = /* @__PURE__ */ jsxs(Fragment, { children: [
|
|
6530
6520
|
/* @__PURE__ */ jsxs("div", { className: styles$t.head, children: [
|
|
6531
6521
|
/* @__PURE__ */ jsxs("div", { className: styles$t.heading, children: [
|
|
6532
|
-
/* @__PURE__ */
|
|
6533
|
-
"Order #",
|
|
6534
|
-
shortRef(order.order_ref)
|
|
6535
|
-
] }),
|
|
6522
|
+
/* @__PURE__ */ jsx("span", { className: styles$t.title, children: `Order #${shortRef(order.order_ref)}` }),
|
|
6536
6523
|
/* @__PURE__ */ jsx("span", { className: styles$t.date, children: formatPlaced(order.placed_at, locale) })
|
|
6537
6524
|
] }),
|
|
6538
6525
|
/* @__PURE__ */ jsx(OrderStatusBadge, { status: order.status })
|
|
@@ -6570,11 +6557,7 @@ function Thumbnails({ order }) {
|
|
|
6570
6557
|
"+",
|
|
6571
6558
|
overflow
|
|
6572
6559
|
] }),
|
|
6573
|
-
/* @__PURE__ */
|
|
6574
|
-
"and ",
|
|
6575
|
-
overflow,
|
|
6576
|
-
" more items"
|
|
6577
|
-
] })
|
|
6560
|
+
/* @__PURE__ */ jsx("span", { className: "visually-hidden", children: `and ${overflow} more items` })
|
|
6578
6561
|
] })
|
|
6579
6562
|
] }, `${src}-${i}`);
|
|
6580
6563
|
}) });
|
|
@@ -7713,10 +7696,7 @@ function ColorSelector({ colours, selected: selected2, onSelect }) {
|
|
|
7713
7696
|
c.image ? /* @__PURE__ */ jsx(ShopImage, { src: c.image, alt: "", fill: true, sizes: "79px", className: styles$f.image }) : /* @__PURE__ */ jsx("span", { className: styles$f.placeholder, "aria-hidden": "true" }),
|
|
7714
7697
|
soldOut && /* @__PURE__ */ jsx("span", { className: styles$f.scrim, "aria-hidden": "true", children: "Out of stock" })
|
|
7715
7698
|
] }),
|
|
7716
|
-
lowStock && /* @__PURE__ */
|
|
7717
|
-
c.remaining,
|
|
7718
|
-
" left"
|
|
7719
|
-
] })
|
|
7699
|
+
lowStock && /* @__PURE__ */ jsx("span", { className: styles$f.stockBadge, "aria-hidden": "true", children: `${c.remaining} left` })
|
|
7720
7700
|
]
|
|
7721
7701
|
},
|
|
7722
7702
|
c.value
|
|
@@ -5951,8 +5951,8 @@ function PriceBlock({
|
|
|
5951
5951
|
return /* @__PURE__ */ jsxs("div", { className: [styles$y.root, styles$y[size], styles$y[align], styles$y[variant]].join(" "), children: [
|
|
5952
5952
|
/* @__PURE__ */ jsx("span", { className: styles$y.price, children: format(price2) }),
|
|
5953
5953
|
hasCompare && /* @__PURE__ */ jsxs("span", { className: styles$y.compareAt, children: [
|
|
5954
|
-
/* @__PURE__ */ jsx("span", { className: "visually-hidden", children:
|
|
5955
|
-
format(compareAt2)
|
|
5954
|
+
/* @__PURE__ */ jsx("span", { className: "visually-hidden", children: `Was ${format(compareAt2)}` }),
|
|
5955
|
+
/* @__PURE__ */ jsx("span", { "aria-hidden": "true", children: format(compareAt2) })
|
|
5956
5956
|
] }),
|
|
5957
5957
|
hasCompare && variant === "badge" && pct !== void 0 && /* @__PURE__ */ jsx(SaleBadge, { pct })
|
|
5958
5958
|
] });
|
|
@@ -6289,15 +6289,9 @@ function OrderTrackingContent({ orderRef, locale: localeProp }) {
|
|
|
6289
6289
|
/* @__PURE__ */ jsxs("div", { className: styles$v.title, children: [
|
|
6290
6290
|
/* @__PURE__ */ jsx("h1", { className: styles$v.headline, children: order.headline }),
|
|
6291
6291
|
/* @__PURE__ */ jsxs("p", { className: styles$v.subtitle, children: [
|
|
6292
|
-
/* @__PURE__ */
|
|
6293
|
-
"Order #",
|
|
6294
|
-
shortRef$1(order.order_ref)
|
|
6295
|
-
] }),
|
|
6292
|
+
/* @__PURE__ */ jsx("span", { children: `Order #${shortRef$1(order.order_ref)}` }),
|
|
6296
6293
|
/* @__PURE__ */ jsx("span", { className: styles$v.dot, "aria-hidden": "true" }),
|
|
6297
|
-
/* @__PURE__ */
|
|
6298
|
-
"Placed ",
|
|
6299
|
-
formatPlaced$1(order.placed_at, locale)
|
|
6300
|
-
] })
|
|
6294
|
+
/* @__PURE__ */ jsx("span", { children: `Placed ${formatPlaced$1(order.placed_at, locale)}` })
|
|
6301
6295
|
] })
|
|
6302
6296
|
] }),
|
|
6303
6297
|
/* @__PURE__ */ jsxs("div", { className: styles$v.widget, children: [
|
|
@@ -6311,11 +6305,7 @@ function OrderTrackingContent({ orderRef, locale: localeProp }) {
|
|
|
6311
6305
|
rel: "noopener noreferrer",
|
|
6312
6306
|
children: [
|
|
6313
6307
|
"Track order",
|
|
6314
|
-
/* @__PURE__ */
|
|
6315
|
-
" (opens ",
|
|
6316
|
-
order.tracking.carrier,
|
|
6317
|
-
" in a new tab)"
|
|
6318
|
-
] })
|
|
6308
|
+
/* @__PURE__ */ jsx("span", { className: styles$v.srOnly, children: ` (opens ${order.tracking.carrier} in a new tab)` })
|
|
6319
6309
|
]
|
|
6320
6310
|
}
|
|
6321
6311
|
)
|
|
@@ -6529,10 +6519,7 @@ function OrderCard({
|
|
|
6529
6519
|
const body2 = /* @__PURE__ */ jsxs(Fragment, { children: [
|
|
6530
6520
|
/* @__PURE__ */ jsxs("div", { className: styles$t.head, children: [
|
|
6531
6521
|
/* @__PURE__ */ jsxs("div", { className: styles$t.heading, children: [
|
|
6532
|
-
/* @__PURE__ */
|
|
6533
|
-
"Order #",
|
|
6534
|
-
shortRef(order.order_ref)
|
|
6535
|
-
] }),
|
|
6522
|
+
/* @__PURE__ */ jsx("span", { className: styles$t.title, children: `Order #${shortRef(order.order_ref)}` }),
|
|
6536
6523
|
/* @__PURE__ */ jsx("span", { className: styles$t.date, children: formatPlaced(order.placed_at, locale) })
|
|
6537
6524
|
] }),
|
|
6538
6525
|
/* @__PURE__ */ jsx(OrderStatusBadge, { status: order.status })
|
|
@@ -6570,11 +6557,7 @@ function Thumbnails({ order }) {
|
|
|
6570
6557
|
"+",
|
|
6571
6558
|
overflow
|
|
6572
6559
|
] }),
|
|
6573
|
-
/* @__PURE__ */
|
|
6574
|
-
"and ",
|
|
6575
|
-
overflow,
|
|
6576
|
-
" more items"
|
|
6577
|
-
] })
|
|
6560
|
+
/* @__PURE__ */ jsx("span", { className: "visually-hidden", children: `and ${overflow} more items` })
|
|
6578
6561
|
] })
|
|
6579
6562
|
] }, `${src}-${i}`);
|
|
6580
6563
|
}) });
|
|
@@ -7713,10 +7696,7 @@ function ColorSelector({ colours, selected: selected2, onSelect }) {
|
|
|
7713
7696
|
c.image ? /* @__PURE__ */ jsx(ShopImage, { src: c.image, alt: "", fill: true, sizes: "79px", className: styles$f.image }) : /* @__PURE__ */ jsx("span", { className: styles$f.placeholder, "aria-hidden": "true" }),
|
|
7714
7697
|
soldOut && /* @__PURE__ */ jsx("span", { className: styles$f.scrim, "aria-hidden": "true", children: "Out of stock" })
|
|
7715
7698
|
] }),
|
|
7716
|
-
lowStock && /* @__PURE__ */
|
|
7717
|
-
c.remaining,
|
|
7718
|
-
" left"
|
|
7719
|
-
] })
|
|
7699
|
+
lowStock && /* @__PURE__ */ jsx("span", { className: styles$f.stockBadge, "aria-hidden": "true", children: `${c.remaining} left` })
|
|
7720
7700
|
]
|
|
7721
7701
|
},
|
|
7722
7702
|
c.value
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@nok-integration/storefront-react",
|
|
3
|
-
"version": "0.16.
|
|
3
|
+
"version": "0.16.5",
|
|
4
4
|
"description": "Mountable React storefront components: catalogue, product detail and cart, mounted directly into a host DOM tree. No iframe.",
|
|
5
5
|
"license": "UNLICENSED",
|
|
6
6
|
"type": "module",
|