@nok-integration/storefront-react 0.29.12 → 0.29.14

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
@@ -11195,18 +11195,18 @@ function StickyCtaBar({ children, info: info2, variant = "floating", className }
11195
11195
  })]
11196
11196
  });
11197
11197
  }
11198
- const surface = "_surface_o6bcy_15";
11199
- const screen = "_screen_o6bcy_20";
11200
- const body$4 = "_body_o6bcy_12";
11201
- const items = "_items_o6bcy_34";
11202
- const sectionHeader = "_sectionHeader_o6bcy_40";
11203
- const sectionTitle = "_sectionTitle_o6bcy_46";
11204
- const count = "_count_o6bcy_67";
11205
- const lines = "_lines_o6bcy_91";
11206
- const footer = "_footer_o6bcy_101";
11207
- const empty = "_empty_o6bcy_105";
11208
- const cta$4 = "_cta_o6bcy_146";
11209
- const ctaError = "_ctaError_o6bcy_154";
11198
+ const surface = "_surface_1rn0i_15";
11199
+ const screen = "_screen_1rn0i_20";
11200
+ const body$4 = "_body_1rn0i_12";
11201
+ const items = "_items_1rn0i_34";
11202
+ const sectionHeader = "_sectionHeader_1rn0i_40";
11203
+ const sectionTitle = "_sectionTitle_1rn0i_46";
11204
+ const count = "_count_1rn0i_67";
11205
+ const lines = "_lines_1rn0i_91";
11206
+ const footer = "_footer_1rn0i_101";
11207
+ const empty = "_empty_1rn0i_105";
11208
+ const cta$4 = "_cta_1rn0i_152";
11209
+ const ctaError = "_ctaError_1rn0i_160";
11210
11210
  const styles$o = {
11211
11211
  surface,
11212
11212
  screen,
@@ -11224,6 +11224,12 @@ const styles$o = {
11224
11224
  function CartView(props = {}) {
11225
11225
  const t = useT();
11226
11226
  useSetScreenTitle(t("Cart"), "none");
11227
+ useSetScreenNav([{
11228
+ label: t("DAZN Shop"),
11229
+ to: "/"
11230
+ }, {
11231
+ label: t("Cart")
11232
+ }], "light");
11227
11233
  return jsx(ShopSurface, {
11228
11234
  tone: "light",
11229
11235
  fill: true,
@@ -11580,7 +11586,7 @@ function MediaGallery({ media: media2, alt, focus }) {
11580
11586
  className: styles$n.track,
11581
11587
  ref: trackRef,
11582
11588
  role: "group",
11583
- "aria-label": `${alt} images`,
11589
+ "aria-label": t("{0} images", alt),
11584
11590
  children: media2.map((src, i) => jsx("div", {
11585
11591
  className: styles$n.slide,
11586
11592
  children: jsx(ShopImage, {
@@ -11953,9 +11959,9 @@ function SizeSelector({ sizes: sizes2, selected: selected2, onSelect, error: err
11953
11959
  disabled: disabled2,
11954
11960
  className: [styles$j.chip, isSelected ? styles$j.selected : "", disabled2 ? styles$j.disabled : ""].filter(Boolean).join(" "),
11955
11961
  onClick: () => !disabled2 && onSelect(size.value),
11956
- children: [size.value, disabled2 && jsx("span", {
11962
+ children: [size.value, disabled2 && jsxs("span", {
11957
11963
  className: "visually-hidden",
11958
- children: " (out of stock)"
11964
+ children: [" ", t("(out of stock)")]
11959
11965
  })]
11960
11966
  }, size.value);
11961
11967
  })
@@ -12099,9 +12105,9 @@ function VariantSelector({ variants, selectedSku, onSelect, labelAttribute }) {
12099
12105
  disabled: disabled2,
12100
12106
  className: [styles$h.option, selected2 ? styles$h.selected : "", disabled2 ? styles$h.disabled : ""].filter(Boolean).join(" "),
12101
12107
  onClick: () => !disabled2 && onSelect(variant.sku),
12102
- children: [labelFor2(variant), disabled2 && jsx("span", {
12108
+ children: [labelFor2(variant), disabled2 && jsxs("span", {
12103
12109
  className: "visually-hidden",
12104
- children: " (out of stock)"
12110
+ children: [" ", t("(out of stock)")]
12105
12111
  })]
12106
12112
  }, variant.sku);
12107
12113
  })
@@ -12582,7 +12588,7 @@ function ProductDetail({ product, inventory: inventory2, recommendations = [], c
12582
12588
  amount: 0,
12583
12589
  currency: product.price.currency
12584
12590
  } : product.price,
12585
- compareAt: claim ? product.price : product.compare_at,
12591
+ compareAt: claim ? product.compare_at ?? product.price : product.compare_at,
12586
12592
  size: "md",
12587
12593
  variant: "badge",
12588
12594
  align: "center"
@@ -11195,18 +11195,18 @@ function StickyCtaBar({ children, info: info2, variant = "floating", className }
11195
11195
  })]
11196
11196
  });
11197
11197
  }
11198
- const surface = "_surface_o6bcy_15";
11199
- const screen = "_screen_o6bcy_20";
11200
- const body$4 = "_body_o6bcy_12";
11201
- const items = "_items_o6bcy_34";
11202
- const sectionHeader = "_sectionHeader_o6bcy_40";
11203
- const sectionTitle = "_sectionTitle_o6bcy_46";
11204
- const count = "_count_o6bcy_67";
11205
- const lines = "_lines_o6bcy_91";
11206
- const footer = "_footer_o6bcy_101";
11207
- const empty = "_empty_o6bcy_105";
11208
- const cta$4 = "_cta_o6bcy_146";
11209
- const ctaError = "_ctaError_o6bcy_154";
11198
+ const surface = "_surface_1rn0i_15";
11199
+ const screen = "_screen_1rn0i_20";
11200
+ const body$4 = "_body_1rn0i_12";
11201
+ const items = "_items_1rn0i_34";
11202
+ const sectionHeader = "_sectionHeader_1rn0i_40";
11203
+ const sectionTitle = "_sectionTitle_1rn0i_46";
11204
+ const count = "_count_1rn0i_67";
11205
+ const lines = "_lines_1rn0i_91";
11206
+ const footer = "_footer_1rn0i_101";
11207
+ const empty = "_empty_1rn0i_105";
11208
+ const cta$4 = "_cta_1rn0i_152";
11209
+ const ctaError = "_ctaError_1rn0i_160";
11210
11210
  const styles$o = {
11211
11211
  surface,
11212
11212
  screen,
@@ -11224,6 +11224,12 @@ const styles$o = {
11224
11224
  function CartView(props = {}) {
11225
11225
  const t = useT();
11226
11226
  useSetScreenTitle(t("Cart"), "none");
11227
+ useSetScreenNav([{
11228
+ label: t("DAZN Shop"),
11229
+ to: "/"
11230
+ }, {
11231
+ label: t("Cart")
11232
+ }], "light");
11227
11233
  return jsx(ShopSurface, {
11228
11234
  tone: "light",
11229
11235
  fill: true,
@@ -11580,7 +11586,7 @@ function MediaGallery({ media: media2, alt, focus }) {
11580
11586
  className: styles$n.track,
11581
11587
  ref: trackRef,
11582
11588
  role: "group",
11583
- "aria-label": `${alt} images`,
11589
+ "aria-label": t("{0} images", alt),
11584
11590
  children: media2.map((src, i) => jsx("div", {
11585
11591
  className: styles$n.slide,
11586
11592
  children: jsx(ShopImage, {
@@ -11953,9 +11959,9 @@ function SizeSelector({ sizes: sizes2, selected: selected2, onSelect, error: err
11953
11959
  disabled: disabled2,
11954
11960
  className: [styles$j.chip, isSelected ? styles$j.selected : "", disabled2 ? styles$j.disabled : ""].filter(Boolean).join(" "),
11955
11961
  onClick: () => !disabled2 && onSelect(size.value),
11956
- children: [size.value, disabled2 && jsx("span", {
11962
+ children: [size.value, disabled2 && jsxs("span", {
11957
11963
  className: "visually-hidden",
11958
- children: " (out of stock)"
11964
+ children: [" ", t("(out of stock)")]
11959
11965
  })]
11960
11966
  }, size.value);
11961
11967
  })
@@ -12099,9 +12105,9 @@ function VariantSelector({ variants, selectedSku, onSelect, labelAttribute }) {
12099
12105
  disabled: disabled2,
12100
12106
  className: [styles$h.option, selected2 ? styles$h.selected : "", disabled2 ? styles$h.disabled : ""].filter(Boolean).join(" "),
12101
12107
  onClick: () => !disabled2 && onSelect(variant.sku),
12102
- children: [labelFor2(variant), disabled2 && jsx("span", {
12108
+ children: [labelFor2(variant), disabled2 && jsxs("span", {
12103
12109
  className: "visually-hidden",
12104
- children: " (out of stock)"
12110
+ children: [" ", t("(out of stock)")]
12105
12111
  })]
12106
12112
  }, variant.sku);
12107
12113
  })
@@ -12582,7 +12588,7 @@ function ProductDetail({ product, inventory: inventory2, recommendations = [], c
12582
12588
  amount: 0,
12583
12589
  currency: product.price.currency
12584
12590
  } : product.price,
12585
- compareAt: claim ? product.price : product.compare_at,
12591
+ compareAt: claim ? product.compare_at ?? product.price : product.compare_at,
12586
12592
  size: "md",
12587
12593
  variant: "badge",
12588
12594
  align: "center"
@@ -3098,33 +3098,33 @@
3098
3098
  ._actions_23dkv_70 > * {
3099
3099
  flex: 1 1 0;
3100
3100
  }
3101
- ._surface_o6bcy_15 {
3101
+ ._surface_1rn0i_15 {
3102
3102
  display: flex;
3103
3103
  flex-direction: column;
3104
3104
  }
3105
- ._screen_o6bcy_20 {
3105
+ ._screen_1rn0i_20 {
3106
3106
  display: flex;
3107
3107
  flex-direction: column;
3108
3108
  flex: 1 1 auto;
3109
3109
  }
3110
- ._body_o6bcy_12 {
3110
+ ._body_1rn0i_12 {
3111
3111
  display: flex;
3112
3112
  flex-direction: column;
3113
3113
  gap: var(--space-20);
3114
3114
  padding: var(--space-20) var(--space-16) 0;
3115
3115
  flex: 1 1 auto;
3116
3116
  }
3117
- ._items_o6bcy_34 {
3117
+ ._items_1rn0i_34 {
3118
3118
  display: flex;
3119
3119
  flex-direction: column;
3120
3120
  gap: var(--space-20);
3121
3121
  }
3122
- ._sectionHeader_o6bcy_40 {
3122
+ ._sectionHeader_1rn0i_40 {
3123
3123
  display: flex;
3124
3124
  align-items: center;
3125
3125
  gap: var(--space-12);
3126
3126
  }
3127
- ._sectionTitle_o6bcy_46 {
3127
+ ._sectionTitle_1rn0i_46 {
3128
3128
  margin: 0;
3129
3129
  font-size: var(--type-heading-md-size);
3130
3130
  line-height: 1.38;
@@ -3132,7 +3132,7 @@
3132
3132
  flex: 1 0 0;
3133
3133
  min-width: 0;
3134
3134
  }
3135
- ._count_o6bcy_67 {
3135
+ ._count_1rn0i_67 {
3136
3136
  display: inline-flex;
3137
3137
  align-items: center;
3138
3138
  justify-content: center;
@@ -3147,7 +3147,7 @@
3147
3147
  font-variant-numeric: tabular-nums;
3148
3148
  flex-shrink: 0;
3149
3149
  }
3150
- ._lines_o6bcy_91 {
3150
+ ._lines_1rn0i_91 {
3151
3151
  list-style: none;
3152
3152
  margin: 0;
3153
3153
  padding: 0;
@@ -3155,33 +3155,38 @@
3155
3155
  flex-direction: column;
3156
3156
  gap: var(--space-20);
3157
3157
  }
3158
- ._footer_o6bcy_101 {
3158
+ ._footer_1rn0i_101 {
3159
3159
  display: contents;
3160
3160
  }
3161
- ._empty_o6bcy_105 {
3161
+ ._empty_1rn0i_105 {
3162
3162
  display: contents;
3163
3163
  }
3164
3164
  @media (min-width: 1200px) {
3165
- [data-shop-panel] ._empty_o6bcy_105 p {
3165
+ ._screen_1rn0i_20 {
3166
+ width: 100%;
3167
+ max-width: 480px;
3168
+ margin-inline: auto;
3169
+ }
3170
+ [data-shop-panel] ._empty_1rn0i_105 p {
3166
3171
  max-width: none;
3167
3172
  white-space: nowrap;
3168
3173
  }
3169
- [data-shop-panel] ._empty_o6bcy_105 button {
3174
+ [data-shop-panel] ._empty_1rn0i_105 button {
3170
3175
  width: 154px;
3171
3176
  padding: 0;
3172
3177
  }
3173
- [data-shop-panel] ._count_o6bcy_67 {
3178
+ [data-shop-panel] ._count_1rn0i_67 {
3174
3179
  border: 1px solid var(--color-border-default);
3175
3180
  background: transparent;
3176
3181
  }
3177
- [data-shop-panel] ._surface_o6bcy_15 {
3182
+ [data-shop-panel] ._surface_1rn0i_15 {
3178
3183
  justify-content: center;
3179
3184
  background: var(--color-surface-base);
3180
3185
  }
3181
- [data-shop-panel] ._body_o6bcy_12 {
3186
+ [data-shop-panel] ._body_1rn0i_12 {
3182
3187
  padding: var(--space-4) var(--space-24) var(--space-24);
3183
3188
  }
3184
- [data-shop-panel] ._footer_o6bcy_101 {
3189
+ [data-shop-panel] ._footer_1rn0i_101 {
3185
3190
  position: sticky;
3186
3191
  bottom: 0;
3187
3192
  z-index: 50;
@@ -3192,14 +3197,14 @@
3192
3197
  border-top: 1px solid #e6e6e6;
3193
3198
  background: var(--color-surface-base);
3194
3199
  }
3195
- [data-shop-panel] ._cta_o6bcy_146 {
3200
+ [data-shop-panel] ._cta_1rn0i_152 {
3196
3201
  position: static;
3197
3202
  padding: 0;
3198
3203
  border-top: none;
3199
3204
  background: transparent;
3200
3205
  }
3201
3206
  }
3202
- ._ctaError_o6bcy_154 {
3207
+ ._ctaError_1rn0i_160 {
3203
3208
  margin: 0;
3204
3209
  font-size: var(--type-caption-sm-size);
3205
3210
  line-height: var(--type-caption-sm-line);
package/dist/styles.css CHANGED
@@ -3098,33 +3098,33 @@
3098
3098
  ._actions_23dkv_70 > * {
3099
3099
  flex: 1 1 0;
3100
3100
  }
3101
- ._surface_o6bcy_15 {
3101
+ ._surface_1rn0i_15 {
3102
3102
  display: flex;
3103
3103
  flex-direction: column;
3104
3104
  }
3105
- ._screen_o6bcy_20 {
3105
+ ._screen_1rn0i_20 {
3106
3106
  display: flex;
3107
3107
  flex-direction: column;
3108
3108
  flex: 1 1 auto;
3109
3109
  }
3110
- ._body_o6bcy_12 {
3110
+ ._body_1rn0i_12 {
3111
3111
  display: flex;
3112
3112
  flex-direction: column;
3113
3113
  gap: var(--space-20);
3114
3114
  padding: var(--space-20) var(--space-16) 0;
3115
3115
  flex: 1 1 auto;
3116
3116
  }
3117
- ._items_o6bcy_34 {
3117
+ ._items_1rn0i_34 {
3118
3118
  display: flex;
3119
3119
  flex-direction: column;
3120
3120
  gap: var(--space-20);
3121
3121
  }
3122
- ._sectionHeader_o6bcy_40 {
3122
+ ._sectionHeader_1rn0i_40 {
3123
3123
  display: flex;
3124
3124
  align-items: center;
3125
3125
  gap: var(--space-12);
3126
3126
  }
3127
- ._sectionTitle_o6bcy_46 {
3127
+ ._sectionTitle_1rn0i_46 {
3128
3128
  margin: 0;
3129
3129
  font-size: var(--type-heading-md-size);
3130
3130
  line-height: 1.38;
@@ -3132,7 +3132,7 @@
3132
3132
  flex: 1 0 0;
3133
3133
  min-width: 0;
3134
3134
  }
3135
- ._count_o6bcy_67 {
3135
+ ._count_1rn0i_67 {
3136
3136
  display: inline-flex;
3137
3137
  align-items: center;
3138
3138
  justify-content: center;
@@ -3147,7 +3147,7 @@
3147
3147
  font-variant-numeric: tabular-nums;
3148
3148
  flex-shrink: 0;
3149
3149
  }
3150
- ._lines_o6bcy_91 {
3150
+ ._lines_1rn0i_91 {
3151
3151
  list-style: none;
3152
3152
  margin: 0;
3153
3153
  padding: 0;
@@ -3155,33 +3155,38 @@
3155
3155
  flex-direction: column;
3156
3156
  gap: var(--space-20);
3157
3157
  }
3158
- ._footer_o6bcy_101 {
3158
+ ._footer_1rn0i_101 {
3159
3159
  display: contents;
3160
3160
  }
3161
- ._empty_o6bcy_105 {
3161
+ ._empty_1rn0i_105 {
3162
3162
  display: contents;
3163
3163
  }
3164
3164
  @media (min-width: 1200px) {
3165
- [data-shop-panel] ._empty_o6bcy_105 p {
3165
+ ._screen_1rn0i_20 {
3166
+ width: 100%;
3167
+ max-width: 480px;
3168
+ margin-inline: auto;
3169
+ }
3170
+ [data-shop-panel] ._empty_1rn0i_105 p {
3166
3171
  max-width: none;
3167
3172
  white-space: nowrap;
3168
3173
  }
3169
- [data-shop-panel] ._empty_o6bcy_105 button {
3174
+ [data-shop-panel] ._empty_1rn0i_105 button {
3170
3175
  width: 154px;
3171
3176
  padding: 0;
3172
3177
  }
3173
- [data-shop-panel] ._count_o6bcy_67 {
3178
+ [data-shop-panel] ._count_1rn0i_67 {
3174
3179
  border: 1px solid var(--color-border-default);
3175
3180
  background: transparent;
3176
3181
  }
3177
- [data-shop-panel] ._surface_o6bcy_15 {
3182
+ [data-shop-panel] ._surface_1rn0i_15 {
3178
3183
  justify-content: center;
3179
3184
  background: var(--color-surface-base);
3180
3185
  }
3181
- [data-shop-panel] ._body_o6bcy_12 {
3186
+ [data-shop-panel] ._body_1rn0i_12 {
3182
3187
  padding: var(--space-4) var(--space-24) var(--space-24);
3183
3188
  }
3184
- [data-shop-panel] ._footer_o6bcy_101 {
3189
+ [data-shop-panel] ._footer_1rn0i_101 {
3185
3190
  position: sticky;
3186
3191
  bottom: 0;
3187
3192
  z-index: 50;
@@ -3192,14 +3197,14 @@
3192
3197
  border-top: 1px solid #e6e6e6;
3193
3198
  background: var(--color-surface-base);
3194
3199
  }
3195
- [data-shop-panel] ._cta_o6bcy_146 {
3200
+ [data-shop-panel] ._cta_1rn0i_152 {
3196
3201
  position: static;
3197
3202
  padding: 0;
3198
3203
  border-top: none;
3199
3204
  background: transparent;
3200
3205
  }
3201
3206
  }
3202
- ._ctaError_o6bcy_154 {
3207
+ ._ctaError_1rn0i_160 {
3203
3208
  margin: 0;
3204
3209
  font-size: var(--type-caption-sm-size);
3205
3210
  line-height: var(--type-caption-sm-line);
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@nok-integration/storefront-react",
3
- "version": "0.29.12",
3
+ "version": "0.29.14",
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",