@nok-integration/storefront-react 0.21.1 → 0.22.1

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/styles.css CHANGED
@@ -32,6 +32,7 @@
32
32
  --color-text-disabled: #9ea2a4;
33
33
  --color-text-strong: #f9fafa;
34
34
  --color-surface-default: #f9fafa;
35
+ --color-surface-base: #ffffff;
35
36
  --color-surface-soft: #f0f2f2;
36
37
  --color-surface-subtle: #dddedf;
37
38
  --color-surface-max: #080e12;
@@ -78,6 +79,7 @@
78
79
  --color-text-strong: #0c161c;
79
80
  --color-text-disabled: #6b7378;
80
81
  --color-surface-default: #080e12;
82
+ --color-surface-base: #080e12;
81
83
  --color-surface-soft: #171e23;
82
84
  --color-surface-subtle: #2a3238;
83
85
  --color-surface-max: #f9fafa;
@@ -91,6 +93,7 @@
91
93
  --color-text-strong: #f9fafa;
92
94
  --color-text-disabled: #9ea2a4;
93
95
  --color-surface-default: #f9fafa;
96
+ --color-surface-base: #ffffff;
94
97
  --color-surface-soft: #f0f2f2;
95
98
  --color-surface-subtle: #dddedf;
96
99
  --color-surface-max: #080e12;
@@ -2400,7 +2403,7 @@
2400
2403
  text-decoration: line-through;
2401
2404
  white-space: nowrap;
2402
2405
  }
2403
- ._box_1cf1a_1 {
2406
+ ._box_w9fja_1 {
2404
2407
  display: flex;
2405
2408
  flex-direction: column;
2406
2409
  gap: var(--space-12);
@@ -2408,23 +2411,23 @@
2408
2411
  border-radius: var(--radius-8);
2409
2412
  background: var(--color-surface-soft);
2410
2413
  }
2411
- ._row_1cf1a_10 {
2414
+ ._row_w9fja_10 {
2412
2415
  display: flex;
2413
2416
  align-items: center;
2414
2417
  gap: var(--space-12);
2415
2418
  }
2416
- ._icon_1cf1a_16 {
2419
+ ._icon_w9fja_16 {
2417
2420
  display: block;
2418
2421
  flex-shrink: 0;
2419
- color: var(--color-text-default);
2422
+ color: var(--color-surface-max);
2420
2423
  }
2421
- ._label_1cf1a_22 {
2424
+ ._label_w9fja_22 {
2422
2425
  margin: 0;
2423
2426
  font-size: var(--type-trimmed-sm-size);
2424
2427
  font-weight: var(--font-weight-bold);
2425
2428
  color: var(--color-text-default);
2426
2429
  }
2427
- ._divider_1cf1a_29 {
2430
+ ._divider_w9fja_29 {
2428
2431
  height: 1px;
2429
2432
  background: var(--color-border-default);
2430
2433
  }
@@ -2574,6 +2577,80 @@
2574
2577
  ._dotActive_1vbj7_100 {
2575
2578
  background: #ffffff;
2576
2579
  }
2580
+ ._row_l4edh_1 {
2581
+ display: flex;
2582
+ flex-wrap: wrap;
2583
+ gap: var(--space-4) var(--space-6);
2584
+ margin: 0;
2585
+ padding: 0;
2586
+ list-style: none;
2587
+ }
2588
+ ._badge_l4edh_11 {
2589
+ display: inline-flex;
2590
+ align-items: center;
2591
+ justify-content: center;
2592
+ height: 20px;
2593
+ padding: var(--space-4) var(--space-6);
2594
+ border-radius: var(--radius-2);
2595
+ background: var(--color-surface-soft);
2596
+ color: var(--color-text-default);
2597
+ font-size: var(--type-trimmed-xs-size);
2598
+ line-height: var(--type-trimmed-xs-line);
2599
+ font-weight: var(--font-weight-bold);
2600
+ letter-spacing: 0.12px;
2601
+ text-transform: uppercase;
2602
+ white-space: nowrap;
2603
+ }
2604
+ ._gallery_1m6o7_1 {
2605
+ display: flex;
2606
+ align-items: flex-start;
2607
+ gap: var(--space-16);
2608
+ }
2609
+ ._thumbs_1m6o7_7 {
2610
+ display: flex;
2611
+ flex-direction: column;
2612
+ gap: var(--space-12);
2613
+ flex: 0 0 72px;
2614
+ }
2615
+ ._thumb_1m6o7_7 {
2616
+ position: relative;
2617
+ width: 72px;
2618
+ height: 90px;
2619
+ padding: 0;
2620
+ border: 0;
2621
+ border-radius: var(--radius-4);
2622
+ background: var(--color-surface-soft);
2623
+ overflow: hidden;
2624
+ cursor: pointer;
2625
+ }
2626
+ ._thumb_1m6o7_7[aria-pressed=true]::after {
2627
+ content: "";
2628
+ position: absolute;
2629
+ inset: 0;
2630
+ border: 2px solid var(--color-surface-max);
2631
+ border-radius: inherit;
2632
+ }
2633
+ ._main_1m6o7_34 {
2634
+ position: relative;
2635
+ flex: 0 0 440px;
2636
+ width: 440px;
2637
+ height: 550px;
2638
+ border-radius: var(--radius-4);
2639
+ background: var(--color-surface-soft);
2640
+ overflow: hidden;
2641
+ }
2642
+ ._image_1m6o7_44 {
2643
+ object-fit: cover;
2644
+ object-position: top center;
2645
+ }
2646
+ ._badges_1m6o7_49 {
2647
+ position: absolute;
2648
+ top: var(--space-16);
2649
+ left: var(--space-16);
2650
+ }
2651
+ ._badges_1m6o7_49 li {
2652
+ background: var(--color-surface-default);
2653
+ }
2577
2654
  ._scrim_r4azu_8 {
2578
2655
  position: fixed;
2579
2656
  inset: 0;
@@ -3089,30 +3166,6 @@
3089
3166
  position: absolute;
3090
3167
  inset: -10px -4px;
3091
3168
  }
3092
- ._row_l4edh_1 {
3093
- display: flex;
3094
- flex-wrap: wrap;
3095
- gap: var(--space-4) var(--space-6);
3096
- margin: 0;
3097
- padding: 0;
3098
- list-style: none;
3099
- }
3100
- ._badge_l4edh_11 {
3101
- display: inline-flex;
3102
- align-items: center;
3103
- justify-content: center;
3104
- height: 20px;
3105
- padding: var(--space-4) var(--space-6);
3106
- border-radius: var(--radius-2);
3107
- background: var(--color-surface-soft);
3108
- color: var(--color-text-default);
3109
- font-size: var(--type-trimmed-xs-size);
3110
- line-height: var(--type-trimmed-xs-line);
3111
- font-weight: var(--font-weight-bold);
3112
- letter-spacing: 0.12px;
3113
- text-transform: uppercase;
3114
- white-space: nowrap;
3115
- }
3116
3169
  ._banner_1xvw4_2 {
3117
3170
  display: flex;
3118
3171
  align-items: center;
@@ -3144,33 +3197,33 @@
3144
3197
  font-weight: var(--font-weight-bold);
3145
3198
  font-variant-numeric: tabular-nums;
3146
3199
  }
3147
- ._page_1hv16_1 {
3200
+ ._page_1479k_1 {
3148
3201
  display: flex;
3149
3202
  flex-direction: column;
3150
3203
  gap: var(--space-16);
3151
3204
  }
3152
- ._content_1hv16_14 {
3205
+ ._content_1479k_14 {
3153
3206
  display: flex;
3154
3207
  flex-direction: column;
3155
3208
  gap: var(--space-32);
3156
3209
  padding: 0 var(--space-16);
3157
3210
  }
3158
- ._intro_1hv16_21 {
3211
+ ._intro_1479k_21 {
3159
3212
  display: flex;
3160
3213
  flex-direction: column;
3161
3214
  gap: var(--space-8);
3162
3215
  }
3163
- ._productInfo_1hv16_28 {
3216
+ ._productInfo_1479k_28 {
3164
3217
  display: flex;
3165
3218
  flex-direction: column;
3166
3219
  gap: var(--space-16);
3167
3220
  }
3168
- ._titlePrice_1hv16_34 {
3221
+ ._titlePrice_1479k_34 {
3169
3222
  display: flex;
3170
3223
  flex-direction: column;
3171
3224
  gap: var(--space-8);
3172
3225
  }
3173
- ._title_1hv16_34 {
3226
+ ._title_1479k_34 {
3174
3227
  margin: 0;
3175
3228
  font-size: var(--type-heading-lg-size);
3176
3229
  line-height: 1.1;
@@ -3181,18 +3234,72 @@
3181
3234
  -webkit-box-orient: vertical;
3182
3235
  overflow: hidden;
3183
3236
  }
3184
- ._availability_1hv16_55 {
3237
+ ._availability_1479k_55 {
3185
3238
  margin: 0;
3186
3239
  font-size: var(--type-trimmed-md-size);
3187
3240
  line-height: var(--type-trimmed-md-line);
3188
3241
  font-weight: var(--font-weight-bold);
3189
3242
  }
3190
- ._low_1hv16_62 {
3243
+ ._low_1479k_62 {
3191
3244
  color: var(--color-state-text-warning);
3192
3245
  }
3193
- ._oos_1hv16_66 {
3246
+ ._oos_1479k_66 {
3194
3247
  color: var(--color-state-surface-critical-default);
3195
3248
  }
3249
+ ._breadcrumb_1479k_70,
3250
+ ._help_1479k_71,
3251
+ ._desktopGallery_1479k_72 {
3252
+ display: none;
3253
+ }
3254
+ @media (min-width: 1200px) {
3255
+ ._wide_1479k_77 {
3256
+ display: grid;
3257
+ grid-template-columns: 528px 464px;
3258
+ grid-template-rows: auto auto auto auto 1fr;
3259
+ grid-template-areas: "crumbs crumbs" "gallery details" "gallery cta" "gallery help" "gallery .";
3260
+ column-gap: 96px;
3261
+ row-gap: 0;
3262
+ justify-content: center;
3263
+ align-content: start;
3264
+ padding: 54px 0 64px;
3265
+ background: var(--color-surface-base);
3266
+ }
3267
+ ._wide_1479k_77 ._breadcrumb_1479k_70 {
3268
+ display: block;
3269
+ grid-area: crumbs;
3270
+ margin-bottom: 29px;
3271
+ }
3272
+ ._wide_1479k_77 ._phoneGallery_1479k_101 {
3273
+ display: none;
3274
+ }
3275
+ ._wide_1479k_77 ._desktopGallery_1479k_72 {
3276
+ display: block;
3277
+ grid-area: gallery;
3278
+ }
3279
+ ._wide_1479k_77 ._content_1479k_14 {
3280
+ grid-area: details;
3281
+ padding: 0;
3282
+ }
3283
+ ._wide_1479k_77 ._introBadges_1479k_115 {
3284
+ display: none;
3285
+ }
3286
+ ._wide_1479k_77 ._sizes_1479k_119 {
3287
+ --color-surface-default: var(--color-surface-base);
3288
+ }
3289
+ ._wide_1479k_77 ._cta_1479k_123 {
3290
+ grid-area: cta;
3291
+ position: static;
3292
+ padding: var(--space-16) 0 var(--space-24);
3293
+ border-radius: 0;
3294
+ filter: none;
3295
+ background: transparent;
3296
+ z-index: auto;
3297
+ }
3298
+ ._wide_1479k_77 ._help_1479k_71 {
3299
+ display: block;
3300
+ grid-area: help;
3301
+ }
3302
+ }
3196
3303
  ._hero_1tiqx_10 {
3197
3304
  --hero-height: clamp(480px, calc(100svh - var(--hero-top, 0px)), 812px);
3198
3305
  position: relative;
@@ -3506,7 +3613,7 @@
3506
3613
  column-gap: var(--space-12);
3507
3614
  row-gap: var(--space-12);
3508
3615
  }
3509
- ._hero_1j0m8_1 {
3616
+ ._hero_dctyt_1 {
3510
3617
  position: relative;
3511
3618
  display: flex;
3512
3619
  flex-direction: column;
@@ -3515,11 +3622,11 @@
3515
3622
  overflow: hidden;
3516
3623
  background: var(--color-surface-default);
3517
3624
  }
3518
- ._image_1j0m8_11 {
3625
+ ._image_dctyt_11 {
3519
3626
  position: absolute;
3520
3627
  inset: 0;
3521
3628
  }
3522
- ._image_1j0m8_11::after {
3629
+ ._image_dctyt_11::after {
3523
3630
  content: "";
3524
3631
  position: absolute;
3525
3632
  inset: 0;
@@ -3531,27 +3638,27 @@
3531
3638
  rgba(8, 14, 18, 0) 382px);
3532
3639
  pointer-events: none;
3533
3640
  }
3534
- ._image_1j0m8_11 img {
3641
+ ._image_dctyt_11 img {
3535
3642
  object-fit: cover;
3536
3643
  object-position: top center;
3537
3644
  }
3538
- ._foot_1j0m8_34 {
3645
+ ._foot_dctyt_34 {
3539
3646
  position: relative;
3540
3647
  display: flex;
3541
3648
  flex-direction: column;
3542
3649
  }
3543
- ._text_1j0m8_40 {
3650
+ ._text_dctyt_40 {
3544
3651
  display: flex;
3545
3652
  flex-direction: column;
3546
3653
  align-items: center;
3547
3654
  gap: var(--space-16);
3548
3655
  padding: 0 var(--space-16) var(--space-8);
3549
3656
  }
3550
- ._text_1j0m8_40 ._logo_1j0m8_48 {
3657
+ ._text_dctyt_40 ._logo_dctyt_48 {
3551
3658
  width: 48px;
3552
3659
  height: 48px;
3553
3660
  }
3554
- ._copy_1j0m8_53 {
3661
+ ._copy_dctyt_53 {
3555
3662
  display: flex;
3556
3663
  flex-direction: column;
3557
3664
  gap: 6px;
@@ -3559,14 +3666,14 @@
3559
3666
  text-align: center;
3560
3667
  overflow-wrap: break-word;
3561
3668
  }
3562
- ._headline_1j0m8_62 {
3669
+ ._headline_dctyt_62 {
3563
3670
  margin: 0;
3564
3671
  font-size: 36px;
3565
3672
  line-height: 1.1;
3566
3673
  font-weight: var(--font-weight-bold);
3567
3674
  color: var(--color-text-default);
3568
3675
  }
3569
- ._body_1j0m8_70 {
3676
+ ._body_dctyt_70 {
3570
3677
  margin: 0;
3571
3678
  font-size: var(--type-paragraph-size);
3572
3679
  line-height: var(--type-paragraph-line);
@@ -3574,9 +3681,122 @@
3574
3681
  color: var(--color-text-default);
3575
3682
  white-space: pre-line;
3576
3683
  }
3577
- ._cta_1j0m8_79 {
3684
+ ._cta_dctyt_79 {
3578
3685
  padding: var(--space-16) var(--space-16) var(--space-24);
3579
3686
  }
3687
+ ._video_dctyt_83 {
3688
+ object-fit: cover;
3689
+ }
3690
+ ._desktopOnly_dctyt_87 {
3691
+ display: none;
3692
+ }
3693
+ @media (min-width: 1200px) {
3694
+ ._hero_dctyt_1 {
3695
+ justify-content: center;
3696
+ min-height: max(480px, calc(100svh - var(--vip-hero-top, 0px)));
3697
+ }
3698
+ ._phoneOnly_dctyt_97 {
3699
+ display: none;
3700
+ }
3701
+ ._desktopOnly_dctyt_87 {
3702
+ display: block;
3703
+ }
3704
+ ._image_dctyt_11::after {
3705
+ background:
3706
+ linear-gradient(
3707
+ to right,
3708
+ rgba(8, 14, 18, 0.9) 0,
3709
+ rgba(8, 14, 18, 0) 53.33%);
3710
+ }
3711
+ ._image_dctyt_11 img,
3712
+ ._video_dctyt_83 {
3713
+ object-position: center;
3714
+ }
3715
+ ._foot_dctyt_34 {
3716
+ gap: var(--space-16);
3717
+ width: 100%;
3718
+ max-width: 624px;
3719
+ padding-left: 64px;
3720
+ }
3721
+ ._text_dctyt_40 {
3722
+ align-items: flex-start;
3723
+ padding: 0;
3724
+ }
3725
+ ._text_dctyt_40 ._logo_dctyt_48 {
3726
+ display: none;
3727
+ }
3728
+ ._copy_dctyt_53 {
3729
+ gap: var(--space-16);
3730
+ text-align: left;
3731
+ }
3732
+ ._headline_dctyt_62 {
3733
+ font-size: 64px;
3734
+ line-height: 0.9375;
3735
+ letter-spacing: -0.64px;
3736
+ }
3737
+ ._body_dctyt_70 {
3738
+ max-width: 520px;
3739
+ font-size: 20px;
3740
+ line-height: 1.4;
3741
+ white-space: normal;
3742
+ }
3743
+ ._cta_dctyt_79 {
3744
+ padding: var(--space-8) 0 0;
3745
+ }
3746
+ ._cta_dctyt_79 > * {
3747
+ width: auto;
3748
+ min-width: 173px;
3749
+ }
3750
+ }
3751
+ ._crumbs_wl5mz_1 {
3752
+ display: flex;
3753
+ align-items: center;
3754
+ height: 21px;
3755
+ gap: var(--space-8);
3756
+ margin: 0;
3757
+ padding: 0;
3758
+ list-style: none;
3759
+ color: var(--color-text-default);
3760
+ white-space: nowrap;
3761
+ }
3762
+ ._home_wl5mz_13 {
3763
+ padding: 0;
3764
+ border: 0;
3765
+ background: none;
3766
+ color: inherit;
3767
+ font: inherit;
3768
+ font-size: 16px;
3769
+ line-height: normal;
3770
+ opacity: 0.6;
3771
+ cursor: pointer;
3772
+ }
3773
+ ._separator_wl5mz_25 {
3774
+ font-size: 14px;
3775
+ line-height: 1.5;
3776
+ opacity: 0.6;
3777
+ }
3778
+ ._current_wl5mz_31 {
3779
+ font-size: 16px;
3780
+ line-height: normal;
3781
+ }
3782
+ ._help_wl5mz_36 {
3783
+ display: flex;
3784
+ align-items: center;
3785
+ gap: var(--space-8);
3786
+ width: 100%;
3787
+ padding: var(--space-8) 0;
3788
+ border: 0;
3789
+ background: none;
3790
+ color: var(--color-text-default);
3791
+ font: inherit;
3792
+ text-align: left;
3793
+ cursor: pointer;
3794
+ }
3795
+ ._helpLabel_wl5mz_50 {
3796
+ font-size: 14px;
3797
+ line-height: 1.5;
3798
+ text-decoration: underline;
3799
+ }
3580
3800
  ._showcase_9ibf6_14 {
3581
3801
  --chrome-bleed: 0px;
3582
3802
  background: #080e12;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@nok-integration/storefront-react",
3
- "version": "0.21.1",
3
+ "version": "0.22.1",
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",