@nok-integration/storefront-react 0.29.4 → 0.29.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 CHANGED
@@ -6253,15 +6253,15 @@ const ShopSurface = forwardRef(function ShopSurface2({ tone, fill: fill2 = false
6253
6253
  children
6254
6254
  });
6255
6255
  });
6256
- const root$7 = "_root_ney0g_1";
6257
- const inner = "_inner_ney0g_6";
6258
- const media$5 = "_media_ney0g_20";
6259
- const lines$2 = "_lines_ney0g_32";
6260
- const lineWide = "_lineWide_ney0g_41";
6261
- const lineMid = "_lineMid_ney0g_45";
6262
- const lineNarrow = "_lineNarrow_ney0g_49";
6263
- const row$9 = "_row_ney0g_53";
6264
- const action$2 = "_action_ney0g_57";
6256
+ const root$7 = "_root_l5418_1";
6257
+ const inner = "_inner_l5418_6";
6258
+ const media$5 = "_media_l5418_20";
6259
+ const lines$2 = "_lines_l5418_32";
6260
+ const lineWide = "_lineWide_l5418_41";
6261
+ const lineMid = "_lineMid_l5418_45";
6262
+ const lineNarrow = "_lineNarrow_l5418_49";
6263
+ const row$9 = "_row_l5418_53";
6264
+ const action$2 = "_action_l5418_57";
6265
6265
  const styles$T = {
6266
6266
  root: root$7,
6267
6267
  inner,
@@ -6601,6 +6601,7 @@ function ScreenSkeleton({ tone, shape = "media" }) {
6601
6601
  tone,
6602
6602
  fill: true,
6603
6603
  className: styles$T.root,
6604
+ "data-shop-layout": "wide",
6604
6605
  children: jsx("div", {
6605
6606
  className: styles$T.inner,
6606
6607
  role: "status",
@@ -8083,9 +8084,9 @@ function ReturnItemsView({ order, onSubmit, busy = false }) {
8083
8084
  const t = useT();
8084
8085
  const wide2 = useDesktopLayout();
8085
8086
  useOrderNav([t("My orders"), t("Order #{0}", shortRef$1(order.order_ref))], t("Return items"));
8086
- const layout = wide2 ? {
8087
+ const layout = {
8087
8088
  "data-shop-layout": "wide"
8088
- } : {};
8089
+ };
8089
8090
  const pageClass = [styles$H.page, wide2 ? styles$H.wide : ""].join(" ");
8090
8091
  const returnable = useMemo(() => order.items.filter((i) => unitsLeft(i) > 0), [order.items]);
8091
8092
  const selected2 = Object.entries(chosen).filter(([, reason2]) => reason2 !== void 0);
@@ -8309,9 +8310,7 @@ function ReturnLabelView({ ret, onDone }) {
8309
8310
  useOrderNav([t("My orders"), t("Order #{0}", shortRef$1(ret.order_ref))], t("Return items"));
8310
8311
  return jsx("div", {
8311
8312
  className: [styles$G.page, wide2 ? styles$G.wide : ""].join(" "),
8312
- ...wide2 ? {
8313
- "data-shop-layout": "wide"
8314
- } : {},
8313
+ "data-shop-layout": "wide",
8315
8314
  children: jsxs("div", {
8316
8315
  className: styles$G.main,
8317
8316
  children: [jsxs("div", {
@@ -8457,9 +8456,7 @@ function ReturnTrackingView({ ret, locale: localeProp }) {
8457
8456
  fill: true,
8458
8457
  children: jsxs("div", {
8459
8458
  className: [styles$F.page, wide2 ? styles$F.wide : ""].join(" "),
8460
- ...wide2 ? {
8461
- "data-shop-layout": "wide"
8462
- } : {},
8459
+ "data-shop-layout": "wide",
8463
8460
  children: [jsxs("section", {
8464
8461
  className: styles$F.widget,
8465
8462
  "aria-labelledby": "return-title",
@@ -9207,9 +9204,7 @@ function OrderTrackingContent({ orderRef, locale: localeProp, onStartReturn, onO
9207
9204
  return jsxs("div", {
9208
9205
  className: [styles$D.page, wide2 ? styles$D.wide : "", wide2 && order.vip ? styles$D.vip : ""].join(" "),
9209
9206
  ref: cancelledPage,
9210
- ...wide2 ? {
9211
- "data-shop-layout": "wide"
9212
- } : {},
9207
+ "data-shop-layout": "wide",
9213
9208
  children: [jsxs("div", {
9214
9209
  className: styles$D.cancelledMain,
9215
9210
  children: [jsxs("div", {
@@ -9253,9 +9248,7 @@ function OrderTrackingContent({ orderRef, locale: localeProp, onStartReturn, onO
9253
9248
  }
9254
9249
  return jsxs("div", {
9255
9250
  className: [styles$D.page, wide2 ? styles$D.wide : ""].join(" "),
9256
- ...wide2 ? {
9257
- "data-shop-layout": "wide"
9258
- } : {},
9251
+ "data-shop-layout": "wide",
9259
9252
  children: [jsxs("section", {
9260
9253
  className: styles$D.widget,
9261
9254
  "aria-label": t("Delivery status"),
@@ -9475,9 +9468,7 @@ function OrderConfirmationContent({ orderRef, locale: localeProp, onDone }) {
9475
9468
  }
9476
9469
  return jsxs("div", {
9477
9470
  className: [styles$C.page, wide2 ? styles$C.wide : ""].join(" "),
9478
- ...wide2 ? {
9479
- "data-shop-layout": "wide"
9480
- } : {},
9471
+ "data-shop-layout": "wide",
9481
9472
  children: [jsxs("section", {
9482
9473
  className: styles$C.confirmed,
9483
9474
  "aria-label": t("Order confirmation"),
@@ -6253,15 +6253,15 @@ const ShopSurface = forwardRef(function ShopSurface2({ tone, fill: fill2 = false
6253
6253
  children
6254
6254
  });
6255
6255
  });
6256
- const root$7 = "_root_ney0g_1";
6257
- const inner = "_inner_ney0g_6";
6258
- const media$5 = "_media_ney0g_20";
6259
- const lines$2 = "_lines_ney0g_32";
6260
- const lineWide = "_lineWide_ney0g_41";
6261
- const lineMid = "_lineMid_ney0g_45";
6262
- const lineNarrow = "_lineNarrow_ney0g_49";
6263
- const row$9 = "_row_ney0g_53";
6264
- const action$2 = "_action_ney0g_57";
6256
+ const root$7 = "_root_l5418_1";
6257
+ const inner = "_inner_l5418_6";
6258
+ const media$5 = "_media_l5418_20";
6259
+ const lines$2 = "_lines_l5418_32";
6260
+ const lineWide = "_lineWide_l5418_41";
6261
+ const lineMid = "_lineMid_l5418_45";
6262
+ const lineNarrow = "_lineNarrow_l5418_49";
6263
+ const row$9 = "_row_l5418_53";
6264
+ const action$2 = "_action_l5418_57";
6265
6265
  const styles$T = {
6266
6266
  root: root$7,
6267
6267
  inner,
@@ -6601,6 +6601,7 @@ function ScreenSkeleton({ tone, shape = "media" }) {
6601
6601
  tone,
6602
6602
  fill: true,
6603
6603
  className: styles$T.root,
6604
+ "data-shop-layout": "wide",
6604
6605
  children: jsx("div", {
6605
6606
  className: styles$T.inner,
6606
6607
  role: "status",
@@ -8083,9 +8084,9 @@ function ReturnItemsView({ order, onSubmit, busy = false }) {
8083
8084
  const t = useT();
8084
8085
  const wide2 = useDesktopLayout();
8085
8086
  useOrderNav([t("My orders"), t("Order #{0}", shortRef$1(order.order_ref))], t("Return items"));
8086
- const layout = wide2 ? {
8087
+ const layout = {
8087
8088
  "data-shop-layout": "wide"
8088
- } : {};
8089
+ };
8089
8090
  const pageClass = [styles$H.page, wide2 ? styles$H.wide : ""].join(" ");
8090
8091
  const returnable = useMemo(() => order.items.filter((i) => unitsLeft(i) > 0), [order.items]);
8091
8092
  const selected2 = Object.entries(chosen).filter(([, reason2]) => reason2 !== void 0);
@@ -8309,9 +8310,7 @@ function ReturnLabelView({ ret, onDone }) {
8309
8310
  useOrderNav([t("My orders"), t("Order #{0}", shortRef$1(ret.order_ref))], t("Return items"));
8310
8311
  return jsx("div", {
8311
8312
  className: [styles$G.page, wide2 ? styles$G.wide : ""].join(" "),
8312
- ...wide2 ? {
8313
- "data-shop-layout": "wide"
8314
- } : {},
8313
+ "data-shop-layout": "wide",
8315
8314
  children: jsxs("div", {
8316
8315
  className: styles$G.main,
8317
8316
  children: [jsxs("div", {
@@ -8457,9 +8456,7 @@ function ReturnTrackingView({ ret, locale: localeProp }) {
8457
8456
  fill: true,
8458
8457
  children: jsxs("div", {
8459
8458
  className: [styles$F.page, wide2 ? styles$F.wide : ""].join(" "),
8460
- ...wide2 ? {
8461
- "data-shop-layout": "wide"
8462
- } : {},
8459
+ "data-shop-layout": "wide",
8463
8460
  children: [jsxs("section", {
8464
8461
  className: styles$F.widget,
8465
8462
  "aria-labelledby": "return-title",
@@ -9207,9 +9204,7 @@ function OrderTrackingContent({ orderRef, locale: localeProp, onStartReturn, onO
9207
9204
  return jsxs("div", {
9208
9205
  className: [styles$D.page, wide2 ? styles$D.wide : "", wide2 && order.vip ? styles$D.vip : ""].join(" "),
9209
9206
  ref: cancelledPage,
9210
- ...wide2 ? {
9211
- "data-shop-layout": "wide"
9212
- } : {},
9207
+ "data-shop-layout": "wide",
9213
9208
  children: [jsxs("div", {
9214
9209
  className: styles$D.cancelledMain,
9215
9210
  children: [jsxs("div", {
@@ -9253,9 +9248,7 @@ function OrderTrackingContent({ orderRef, locale: localeProp, onStartReturn, onO
9253
9248
  }
9254
9249
  return jsxs("div", {
9255
9250
  className: [styles$D.page, wide2 ? styles$D.wide : ""].join(" "),
9256
- ...wide2 ? {
9257
- "data-shop-layout": "wide"
9258
- } : {},
9251
+ "data-shop-layout": "wide",
9259
9252
  children: [jsxs("section", {
9260
9253
  className: styles$D.widget,
9261
9254
  "aria-label": t("Delivery status"),
@@ -9475,9 +9468,7 @@ function OrderConfirmationContent({ orderRef, locale: localeProp, onDone }) {
9475
9468
  }
9476
9469
  return jsxs("div", {
9477
9470
  className: [styles$C.page, wide2 ? styles$C.wide : ""].join(" "),
9478
- ...wide2 ? {
9479
- "data-shop-layout": "wide"
9480
- } : {},
9471
+ "data-shop-layout": "wide",
9481
9472
  children: [jsxs("section", {
9482
9473
  className: styles$C.confirmed,
9483
9474
  "aria-label": t("Order confirmation"),
@@ -279,43 +279,56 @@
279
279
  scroll-behavior: auto !important;
280
280
  }
281
281
  }
282
- ._root_ney0g_1 {
282
+ ._root_l5418_1 {
283
283
  display: flex;
284
284
  flex-direction: column;
285
285
  }
286
- ._inner_ney0g_6 {
286
+ ._inner_l5418_6 {
287
287
  display: flex;
288
288
  flex-direction: column;
289
289
  gap: var(--space-16);
290
290
  padding-bottom: var(--space-24);
291
291
  }
292
- ._media_ney0g_20 {
292
+ ._media_l5418_20 {
293
293
  width: 100%;
294
294
  min-height: 320px;
295
295
  aspect-ratio: 4 / 5;
296
296
  border-radius: 0;
297
297
  }
298
- ._lines_ney0g_32 {
298
+ ._lines_l5418_32 {
299
299
  display: flex;
300
300
  flex-direction: column;
301
301
  gap: var(--space-12);
302
302
  padding: 0 var(--space-16);
303
303
  }
304
- ._lineWide_ney0g_41 {
304
+ ._lineWide_l5418_41 {
305
305
  width: 70%;
306
306
  }
307
- ._lineMid_ney0g_45 {
307
+ ._lineMid_l5418_45 {
308
308
  width: 45%;
309
309
  }
310
- ._lineNarrow_ney0g_49 {
310
+ ._lineNarrow_l5418_49 {
311
311
  width: 88%;
312
312
  }
313
- ._row_ney0g_53 {
313
+ ._row_l5418_53 {
314
314
  width: 100%;
315
315
  }
316
- ._action_ney0g_57 {
316
+ ._action_l5418_57 {
317
317
  margin: var(--space-8) var(--space-16) 0;
318
318
  }
319
+ @media (min-width: 1200px) {
320
+ ._media_l5418_20 {
321
+ min-height: 0;
322
+ aspect-ratio: auto;
323
+ height: calc(100vh - var(--shop-chrome-top, 0px) - 64px);
324
+ }
325
+ ._lines_l5418_32,
326
+ ._action_l5418_57 {
327
+ width: min(1088px, 100%);
328
+ margin-inline: auto;
329
+ padding: 0;
330
+ }
331
+ }
319
332
  ._root_ryf3q_6 {
320
333
  display: flex;
321
334
  flex-direction: column;
package/dist/styles.css CHANGED
@@ -279,43 +279,56 @@
279
279
  scroll-behavior: auto !important;
280
280
  }
281
281
  }
282
- ._root_ney0g_1 {
282
+ ._root_l5418_1 {
283
283
  display: flex;
284
284
  flex-direction: column;
285
285
  }
286
- ._inner_ney0g_6 {
286
+ ._inner_l5418_6 {
287
287
  display: flex;
288
288
  flex-direction: column;
289
289
  gap: var(--space-16);
290
290
  padding-bottom: var(--space-24);
291
291
  }
292
- ._media_ney0g_20 {
292
+ ._media_l5418_20 {
293
293
  width: 100%;
294
294
  min-height: 320px;
295
295
  aspect-ratio: 4 / 5;
296
296
  border-radius: 0;
297
297
  }
298
- ._lines_ney0g_32 {
298
+ ._lines_l5418_32 {
299
299
  display: flex;
300
300
  flex-direction: column;
301
301
  gap: var(--space-12);
302
302
  padding: 0 var(--space-16);
303
303
  }
304
- ._lineWide_ney0g_41 {
304
+ ._lineWide_l5418_41 {
305
305
  width: 70%;
306
306
  }
307
- ._lineMid_ney0g_45 {
307
+ ._lineMid_l5418_45 {
308
308
  width: 45%;
309
309
  }
310
- ._lineNarrow_ney0g_49 {
310
+ ._lineNarrow_l5418_49 {
311
311
  width: 88%;
312
312
  }
313
- ._row_ney0g_53 {
313
+ ._row_l5418_53 {
314
314
  width: 100%;
315
315
  }
316
- ._action_ney0g_57 {
316
+ ._action_l5418_57 {
317
317
  margin: var(--space-8) var(--space-16) 0;
318
318
  }
319
+ @media (min-width: 1200px) {
320
+ ._media_l5418_20 {
321
+ min-height: 0;
322
+ aspect-ratio: auto;
323
+ height: calc(100vh - var(--shop-chrome-top, 0px) - 64px);
324
+ }
325
+ ._lines_l5418_32,
326
+ ._action_l5418_57 {
327
+ width: min(1088px, 100%);
328
+ margin-inline: auto;
329
+ padding: 0;
330
+ }
331
+ }
319
332
  ._root_ryf3q_6 {
320
333
  display: flex;
321
334
  flex-direction: column;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@nok-integration/storefront-react",
3
- "version": "0.29.4",
3
+ "version": "0.29.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",