@nok-integration/storefront-react 0.16.1 → 0.16.2

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
@@ -5476,8 +5476,8 @@ function Skeleton({ width, height, radius, className, circle }) {
5476
5476
  }
5477
5477
  );
5478
5478
  }
5479
- const surface$1 = "_surface_nj74o_10";
5480
- const fill = "_fill_nj74o_35";
5479
+ const surface$1 = "_surface_cfqo9_10";
5480
+ const fill = "_fill_cfqo9_35";
5481
5481
  const styles$E = {
5482
5482
  surface: surface$1,
5483
5483
  fill
@@ -5476,8 +5476,8 @@ function Skeleton({ width, height, radius, className, circle }) {
5476
5476
  }
5477
5477
  );
5478
5478
  }
5479
- const surface$1 = "_surface_nj74o_10";
5480
- const fill = "_fill_nj74o_35";
5479
+ const surface$1 = "_surface_cfqo9_10";
5480
+ const fill = "_fill_cfqo9_35";
5481
5481
  const styles$E = {
5482
5482
  surface: surface$1,
5483
5483
  fill
@@ -305,7 +305,7 @@
305
305
  * (serif, in a page that never set one) and its own background.
306
306
  */
307
307
 
308
- ._surface_nj74o_10 {
308
+ ._surface_cfqo9_10 {
309
309
  font-family: var(--font-family-base);
310
310
  font-weight: var(--font-weight-regular);
311
311
  font-size: var(--type-paragraph-size);
@@ -316,9 +316,9 @@
316
316
  text-rendering: optimizeLegibility;
317
317
  }
318
318
 
319
- ._surface_nj74o_10 *,
320
- ._surface_nj74o_10 *::before,
321
- ._surface_nj74o_10 *::after {
319
+ ._surface_cfqo9_10 *,
320
+ ._surface_cfqo9_10 *::before,
321
+ ._surface_cfqo9_10 *::after {
322
322
  box-sizing: border-box;
323
323
  }
324
324
 
@@ -330,7 +330,7 @@
330
330
  * through a screen of the opposite palette) is invisible in our own app, where the body
331
331
  * already matches, and so goes unnoticed until a partner reports it.
332
332
  */
333
- ._fill_nj74o_35 {
333
+ ._fill_cfqo9_35 {
334
334
  /* Declared twice on purpose, and the order matters.
335
335
  `dvh` landed in Chrome 108 / iOS 15.4, and this package supports React 16.14 because
336
336
  that is what DAZN's app runs — an app that old can be paired with a WebView that old.
@@ -348,17 +348,31 @@
348
348
  min-height: calc(100dvh - var(--surface-top, 0px));
349
349
  }
350
350
 
351
- ._surface_nj74o_10 :is(h1, h2, h3) {
351
+ /*
352
+ * Base heading typography — a DEFAULT, which is why every part is wrapped in `:where()`.
353
+ *
354
+ * This is the same trap the link rule below documents, and it was still live here.
355
+ * `.surface h1` is specificity (0,1,1) and a CSS-module class is (0,1,0), so these rules
356
+ * beat every component that set its own heading size. The category hero asked for 40px in
357
+ * `PcpHero.module.css` and rendered at 24px — the `--type-heading-lg-size` below — which
358
+ * read as "the design is wrong" rather than "a base style is winning", and sent us
359
+ * measuring Figma twice before checking what the browser actually computed.
360
+ *
361
+ * `:where()` drops the whole selector to specificity (0,0,0), so ANY component class wins
362
+ * deterministically rather than by source order, while a heading that sets nothing still
363
+ * gets the scale. That is what a base style should be.
364
+ */
365
+ :where(._surface_cfqo9_10) :where(h1, h2, h3) {
352
366
  margin: 0;
353
367
  font-weight: var(--font-weight-bold);
354
368
  }
355
369
 
356
- ._surface_nj74o_10 h1 {
370
+ :where(._surface_cfqo9_10) :where(h1) {
357
371
  font-size: var(--type-heading-lg-size);
358
372
  line-height: var(--type-heading-lg-line);
359
373
  }
360
374
 
361
- ._surface_nj74o_10 h2 {
375
+ :where(._surface_cfqo9_10) :where(h2) {
362
376
  font-size: var(--type-heading-md-size);
363
377
  line-height: var(--type-heading-md-line);
364
378
  }
@@ -377,27 +391,27 @@
377
391
  * Restricting the rule to unclassed anchors keeps what it is for — a bare `<a>` must never
378
392
  * render browser-blue — while leaving any anchor that carries a class in charge of itself.
379
393
  */
380
- ._surface_nj74o_10 a:not([class]) {
394
+ ._surface_cfqo9_10 a:not([class]) {
381
395
  color: inherit;
382
396
  }
383
397
 
384
- ._surface_nj74o_10 img {
398
+ ._surface_cfqo9_10 img {
385
399
  max-width: 100%;
386
400
  height: auto;
387
401
  }
388
402
 
389
403
  /* Visible focus for keyboard users — a WCAG 2.1 AA launch gate, so it cannot be left
390
404
  to the host to remember. */
391
- ._surface_nj74o_10 :focus-visible {
405
+ ._surface_cfqo9_10 :focus-visible {
392
406
  outline: 2px solid var(--color-surface-max);
393
407
  outline-offset: 2px;
394
408
  border-radius: var(--radius-4);
395
409
  }
396
410
 
397
411
  @media (prefers-reduced-motion: reduce) {
398
- ._surface_nj74o_10 *,
399
- ._surface_nj74o_10 *::before,
400
- ._surface_nj74o_10 *::after {
412
+ ._surface_cfqo9_10 *,
413
+ ._surface_cfqo9_10 *::before,
414
+ ._surface_cfqo9_10 *::after {
401
415
  animation-duration: 0.001ms !important;
402
416
  animation-iteration-count: 1 !important;
403
417
  transition-duration: 0.001ms !important;
package/dist/styles.css CHANGED
@@ -305,7 +305,7 @@
305
305
  * (serif, in a page that never set one) and its own background.
306
306
  */
307
307
 
308
- ._surface_nj74o_10 {
308
+ ._surface_cfqo9_10 {
309
309
  font-family: var(--font-family-base);
310
310
  font-weight: var(--font-weight-regular);
311
311
  font-size: var(--type-paragraph-size);
@@ -316,9 +316,9 @@
316
316
  text-rendering: optimizeLegibility;
317
317
  }
318
318
 
319
- ._surface_nj74o_10 *,
320
- ._surface_nj74o_10 *::before,
321
- ._surface_nj74o_10 *::after {
319
+ ._surface_cfqo9_10 *,
320
+ ._surface_cfqo9_10 *::before,
321
+ ._surface_cfqo9_10 *::after {
322
322
  box-sizing: border-box;
323
323
  }
324
324
 
@@ -330,7 +330,7 @@
330
330
  * through a screen of the opposite palette) is invisible in our own app, where the body
331
331
  * already matches, and so goes unnoticed until a partner reports it.
332
332
  */
333
- ._fill_nj74o_35 {
333
+ ._fill_cfqo9_35 {
334
334
  /* Declared twice on purpose, and the order matters.
335
335
  `dvh` landed in Chrome 108 / iOS 15.4, and this package supports React 16.14 because
336
336
  that is what DAZN's app runs — an app that old can be paired with a WebView that old.
@@ -348,17 +348,31 @@
348
348
  min-height: calc(100dvh - var(--surface-top, 0px));
349
349
  }
350
350
 
351
- ._surface_nj74o_10 :is(h1, h2, h3) {
351
+ /*
352
+ * Base heading typography — a DEFAULT, which is why every part is wrapped in `:where()`.
353
+ *
354
+ * This is the same trap the link rule below documents, and it was still live here.
355
+ * `.surface h1` is specificity (0,1,1) and a CSS-module class is (0,1,0), so these rules
356
+ * beat every component that set its own heading size. The category hero asked for 40px in
357
+ * `PcpHero.module.css` and rendered at 24px — the `--type-heading-lg-size` below — which
358
+ * read as "the design is wrong" rather than "a base style is winning", and sent us
359
+ * measuring Figma twice before checking what the browser actually computed.
360
+ *
361
+ * `:where()` drops the whole selector to specificity (0,0,0), so ANY component class wins
362
+ * deterministically rather than by source order, while a heading that sets nothing still
363
+ * gets the scale. That is what a base style should be.
364
+ */
365
+ :where(._surface_cfqo9_10) :where(h1, h2, h3) {
352
366
  margin: 0;
353
367
  font-weight: var(--font-weight-bold);
354
368
  }
355
369
 
356
- ._surface_nj74o_10 h1 {
370
+ :where(._surface_cfqo9_10) :where(h1) {
357
371
  font-size: var(--type-heading-lg-size);
358
372
  line-height: var(--type-heading-lg-line);
359
373
  }
360
374
 
361
- ._surface_nj74o_10 h2 {
375
+ :where(._surface_cfqo9_10) :where(h2) {
362
376
  font-size: var(--type-heading-md-size);
363
377
  line-height: var(--type-heading-md-line);
364
378
  }
@@ -377,27 +391,27 @@
377
391
  * Restricting the rule to unclassed anchors keeps what it is for — a bare `<a>` must never
378
392
  * render browser-blue — while leaving any anchor that carries a class in charge of itself.
379
393
  */
380
- ._surface_nj74o_10 a:not([class]) {
394
+ ._surface_cfqo9_10 a:not([class]) {
381
395
  color: inherit;
382
396
  }
383
397
 
384
- ._surface_nj74o_10 img {
398
+ ._surface_cfqo9_10 img {
385
399
  max-width: 100%;
386
400
  height: auto;
387
401
  }
388
402
 
389
403
  /* Visible focus for keyboard users — a WCAG 2.1 AA launch gate, so it cannot be left
390
404
  to the host to remember. */
391
- ._surface_nj74o_10 :focus-visible {
405
+ ._surface_cfqo9_10 :focus-visible {
392
406
  outline: 2px solid var(--color-surface-max);
393
407
  outline-offset: 2px;
394
408
  border-radius: var(--radius-4);
395
409
  }
396
410
 
397
411
  @media (prefers-reduced-motion: reduce) {
398
- ._surface_nj74o_10 *,
399
- ._surface_nj74o_10 *::before,
400
- ._surface_nj74o_10 *::after {
412
+ ._surface_cfqo9_10 *,
413
+ ._surface_cfqo9_10 *::before,
414
+ ._surface_cfqo9_10 *::after {
401
415
  animation-duration: 0.001ms !important;
402
416
  animation-iteration-count: 1 !important;
403
417
  transition-duration: 0.001ms !important;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@nok-integration/storefront-react",
3
- "version": "0.16.1",
3
+ "version": "0.16.2",
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
  "publishConfig": {