@nok-integration/storefront-react 0.20.8 → 0.20.9

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
@@ -5580,13 +5580,13 @@ function ShopVideo({ src, poster, fill: fill2 = false, className, style, priorit
5580
5580
  });
5581
5581
  }
5582
5582
  const badge$5 = "_badge_1bagf_1";
5583
- const neutral$1 = "_neutral_1bagf_12";
5583
+ const neutral$2 = "_neutral_1bagf_12";
5584
5584
  const success$1 = "_success_1bagf_17";
5585
5585
  const critical$2 = "_critical_1bagf_22";
5586
5586
  const promo = "_promo_1bagf_27";
5587
5587
  const styles$R = {
5588
5588
  badge: badge$5,
5589
- neutral: neutral$1,
5589
+ neutral: neutral$2,
5590
5590
  success: success$1,
5591
5591
  critical: critical$2,
5592
5592
  promo
@@ -5972,7 +5972,7 @@ const ES = {
5972
5972
  Refunded: "Reembolsado",
5973
5973
  "In progress": "En curso",
5974
5974
  Return: "Devolución",
5975
- Initiated: "Iniciada",
5975
+ Reported: "Notificada",
5976
5976
  Received: "Recibida",
5977
5977
  Completed: "Completada",
5978
5978
  item: "artículo",
@@ -6251,7 +6251,7 @@ const toast = "_toast_oz4st_82";
6251
6251
  const text$4 = "_text_oz4st_111";
6252
6252
  const message$1 = "_message_oz4st_120";
6253
6253
  const action = "_action_oz4st_133";
6254
- const neutral = "_neutral_oz4st_158";
6254
+ const neutral$1 = "_neutral_oz4st_158";
6255
6255
  const success = "_success_oz4st_163";
6256
6256
  const critical$1 = "_critical_oz4st_168";
6257
6257
  const rich = "_rich_oz4st_183";
@@ -6266,7 +6266,7 @@ const styles$K = {
6266
6266
  text: text$4,
6267
6267
  message: message$1,
6268
6268
  action,
6269
- neutral,
6269
+ neutral: neutral$1,
6270
6270
  success,
6271
6271
  critical: critical$1,
6272
6272
  rich,
@@ -8253,14 +8253,16 @@ function OrderConfirmationContent({ orderRef, locale: localeProp, onDone }) {
8253
8253
  })]
8254
8254
  });
8255
8255
  }
8256
- const badge$2 = "_badge_1w0zn_6";
8257
- const progress = "_progress_1w0zn_22";
8258
- const delivered = "_delivered_1w0zn_27";
8259
- const critical = "_critical_1w0zn_36";
8256
+ const badge$2 = "_badge_u46qd_6";
8257
+ const progress = "_progress_u46qd_22";
8258
+ const delivered = "_delivered_u46qd_27";
8259
+ const neutral = "_neutral_u46qd_34";
8260
+ const critical = "_critical_u46qd_43";
8260
8261
  const styles$w = {
8261
8262
  badge: badge$2,
8262
8263
  progress,
8263
8264
  delivered,
8265
+ neutral,
8264
8266
  critical
8265
8267
  };
8266
8268
  const LABEL = {
@@ -8280,26 +8282,26 @@ const TONE = {
8280
8282
  function OrderStatusBadge({ status }) {
8281
8283
  const t = useT();
8282
8284
  const label2 = LABEL[status] ?? status.replace(/_/g, " ");
8283
- const tone = TONE[status] ?? "progress";
8285
+ const tone = TONE[status] ?? "neutral";
8284
8286
  return jsx("span", {
8285
8287
  className: [styles$w.badge, styles$w[tone]].join(" "),
8286
8288
  children: t(label2)
8287
8289
  });
8288
8290
  }
8289
8291
  const RETURN_LABEL = {
8290
- reported: "Initiated",
8292
+ reported: "Reported",
8291
8293
  package_received: "Received",
8292
8294
  completed: "Completed"
8293
8295
  };
8294
8296
  const RETURN_TONE = {
8295
- reported: "progress",
8296
- package_received: "progress",
8297
- completed: "delivered"
8297
+ reported: "neutral",
8298
+ package_received: "neutral",
8299
+ completed: "neutral"
8298
8300
  };
8299
8301
  function ReturnStatusBadge({ status }) {
8300
8302
  const t = useT();
8301
8303
  const label2 = RETURN_LABEL[status] ?? status.replace(/_/g, " ");
8302
- const tone = RETURN_TONE[status] ?? "progress";
8304
+ const tone = RETURN_TONE[status] ?? "neutral";
8303
8305
  return jsx("span", {
8304
8306
  className: [styles$w.badge, styles$w[tone]].join(" "),
8305
8307
  children: t(label2)
@@ -5580,13 +5580,13 @@ function ShopVideo({ src, poster, fill: fill2 = false, className, style, priorit
5580
5580
  });
5581
5581
  }
5582
5582
  const badge$5 = "_badge_1bagf_1";
5583
- const neutral$1 = "_neutral_1bagf_12";
5583
+ const neutral$2 = "_neutral_1bagf_12";
5584
5584
  const success$1 = "_success_1bagf_17";
5585
5585
  const critical$2 = "_critical_1bagf_22";
5586
5586
  const promo = "_promo_1bagf_27";
5587
5587
  const styles$R = {
5588
5588
  badge: badge$5,
5589
- neutral: neutral$1,
5589
+ neutral: neutral$2,
5590
5590
  success: success$1,
5591
5591
  critical: critical$2,
5592
5592
  promo
@@ -5972,7 +5972,7 @@ const ES = {
5972
5972
  Refunded: "Reembolsado",
5973
5973
  "In progress": "En curso",
5974
5974
  Return: "Devolución",
5975
- Initiated: "Iniciada",
5975
+ Reported: "Notificada",
5976
5976
  Received: "Recibida",
5977
5977
  Completed: "Completada",
5978
5978
  item: "artículo",
@@ -6251,7 +6251,7 @@ const toast = "_toast_oz4st_82";
6251
6251
  const text$4 = "_text_oz4st_111";
6252
6252
  const message$1 = "_message_oz4st_120";
6253
6253
  const action = "_action_oz4st_133";
6254
- const neutral = "_neutral_oz4st_158";
6254
+ const neutral$1 = "_neutral_oz4st_158";
6255
6255
  const success = "_success_oz4st_163";
6256
6256
  const critical$1 = "_critical_oz4st_168";
6257
6257
  const rich = "_rich_oz4st_183";
@@ -6266,7 +6266,7 @@ const styles$K = {
6266
6266
  text: text$4,
6267
6267
  message: message$1,
6268
6268
  action,
6269
- neutral,
6269
+ neutral: neutral$1,
6270
6270
  success,
6271
6271
  critical: critical$1,
6272
6272
  rich,
@@ -8253,14 +8253,16 @@ function OrderConfirmationContent({ orderRef, locale: localeProp, onDone }) {
8253
8253
  })]
8254
8254
  });
8255
8255
  }
8256
- const badge$2 = "_badge_1w0zn_6";
8257
- const progress = "_progress_1w0zn_22";
8258
- const delivered = "_delivered_1w0zn_27";
8259
- const critical = "_critical_1w0zn_36";
8256
+ const badge$2 = "_badge_u46qd_6";
8257
+ const progress = "_progress_u46qd_22";
8258
+ const delivered = "_delivered_u46qd_27";
8259
+ const neutral = "_neutral_u46qd_34";
8260
+ const critical = "_critical_u46qd_43";
8260
8261
  const styles$w = {
8261
8262
  badge: badge$2,
8262
8263
  progress,
8263
8264
  delivered,
8265
+ neutral,
8264
8266
  critical
8265
8267
  };
8266
8268
  const LABEL = {
@@ -8280,26 +8282,26 @@ const TONE = {
8280
8282
  function OrderStatusBadge({ status }) {
8281
8283
  const t = useT();
8282
8284
  const label2 = LABEL[status] ?? status.replace(/_/g, " ");
8283
- const tone = TONE[status] ?? "progress";
8285
+ const tone = TONE[status] ?? "neutral";
8284
8286
  return jsx("span", {
8285
8287
  className: [styles$w.badge, styles$w[tone]].join(" "),
8286
8288
  children: t(label2)
8287
8289
  });
8288
8290
  }
8289
8291
  const RETURN_LABEL = {
8290
- reported: "Initiated",
8292
+ reported: "Reported",
8291
8293
  package_received: "Received",
8292
8294
  completed: "Completed"
8293
8295
  };
8294
8296
  const RETURN_TONE = {
8295
- reported: "progress",
8296
- package_received: "progress",
8297
- completed: "delivered"
8297
+ reported: "neutral",
8298
+ package_received: "neutral",
8299
+ completed: "neutral"
8298
8300
  };
8299
8301
  function ReturnStatusBadge({ status }) {
8300
8302
  const t = useT();
8301
8303
  const label2 = RETURN_LABEL[status] ?? status.replace(/_/g, " ");
8302
- const tone = RETURN_TONE[status] ?? "progress";
8304
+ const tone = RETURN_TONE[status] ?? "neutral";
8303
8305
  return jsx("span", {
8304
8306
  className: [styles$w.badge, styles$w[tone]].join(" "),
8305
8307
  children: t(label2)
@@ -1619,7 +1619,7 @@
1619
1619
  ._done_vqbqs_94 {
1620
1620
  border-color: var(--color-surface-max);
1621
1621
  }
1622
- ._badge_1w0zn_6 {
1622
+ ._badge_u46qd_6 {
1623
1623
  display: inline-flex;
1624
1624
  align-items: center;
1625
1625
  justify-content: center;
@@ -1634,15 +1634,19 @@
1634
1634
  text-transform: uppercase;
1635
1635
  white-space: nowrap;
1636
1636
  }
1637
- ._progress_1w0zn_22 {
1637
+ ._progress_u46qd_22 {
1638
1638
  background: var(--color-state-surface-warning-soft);
1639
1639
  color: var(--color-state-text-warning);
1640
1640
  }
1641
- ._delivered_1w0zn_27 {
1641
+ ._delivered_u46qd_27 {
1642
1642
  background: var(--color-state-surface-success-soft);
1643
1643
  color: var(--color-state-text-success);
1644
1644
  }
1645
- ._critical_1w0zn_36 {
1645
+ ._neutral_u46qd_34 {
1646
+ background: var(--color-surface-subtle);
1647
+ color: var(--color-text-default);
1648
+ }
1649
+ ._critical_u46qd_43 {
1646
1650
  background: var(--color-state-surface-critical-soft);
1647
1651
  color: var(--color-state-text-critical);
1648
1652
  }
package/dist/styles.css CHANGED
@@ -1619,7 +1619,7 @@
1619
1619
  ._done_vqbqs_94 {
1620
1620
  border-color: var(--color-surface-max);
1621
1621
  }
1622
- ._badge_1w0zn_6 {
1622
+ ._badge_u46qd_6 {
1623
1623
  display: inline-flex;
1624
1624
  align-items: center;
1625
1625
  justify-content: center;
@@ -1634,15 +1634,19 @@
1634
1634
  text-transform: uppercase;
1635
1635
  white-space: nowrap;
1636
1636
  }
1637
- ._progress_1w0zn_22 {
1637
+ ._progress_u46qd_22 {
1638
1638
  background: var(--color-state-surface-warning-soft);
1639
1639
  color: var(--color-state-text-warning);
1640
1640
  }
1641
- ._delivered_1w0zn_27 {
1641
+ ._delivered_u46qd_27 {
1642
1642
  background: var(--color-state-surface-success-soft);
1643
1643
  color: var(--color-state-text-success);
1644
1644
  }
1645
- ._critical_1w0zn_36 {
1645
+ ._neutral_u46qd_34 {
1646
+ background: var(--color-surface-subtle);
1647
+ color: var(--color-text-default);
1648
+ }
1649
+ ._critical_u46qd_43 {
1646
1650
  background: var(--color-state-surface-critical-soft);
1647
1651
  color: var(--color-state-text-critical);
1648
1652
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@nok-integration/storefront-react",
3
- "version": "0.20.8",
3
+ "version": "0.20.9",
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",