@nok-integration/storefront-react 0.19.7 → 0.19.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.d.ts +13 -4
- package/dist/index.mjs +34 -31
- package/dist/standalone/storefront.mjs +34 -31
- package/dist/standalone/styles.css +48 -39
- package/dist/styles.css +48 -39
- package/package.json +9 -28
package/dist/index.d.ts
CHANGED
|
@@ -3693,11 +3693,20 @@ declare const OrderDetail: z.ZodObject<{
|
|
|
3693
3693
|
currency: string;
|
|
3694
3694
|
}>;
|
|
3695
3695
|
/**
|
|
3696
|
-
* The undiscounted per-unit price
|
|
3696
|
+
* The undiscounted per-unit price. Display only.
|
|
3697
3697
|
*
|
|
3698
|
-
* Drawn as a struck-through price with a saving badge beside what was paid. Absent
|
|
3699
|
-
*
|
|
3700
|
-
*
|
|
3698
|
+
* Drawn as a struck-through price with a saving badge beside what was paid. Absent means
|
|
3699
|
+
* the line was sold at full price.
|
|
3700
|
+
*
|
|
3701
|
+
* **Two possible sources, and the screen cannot tell them apart.** It is the
|
|
3702
|
+
* `compare_at_unit_price` stated on the order where one was sent, and the catalogue's
|
|
3703
|
+
* current compare-at for the order's currency where it was not. The second exists
|
|
3704
|
+
* because the first is not yet populated, and it carries a caveat the first does not: a
|
|
3705
|
+
* catalogue price moves with merchandising, so this figure can differ between two reads
|
|
3706
|
+
* of the same order. What was *paid* never moves.
|
|
3707
|
+
*
|
|
3708
|
+
* Always strictly greater than `unit_price` when present — a compare-at at or below what
|
|
3709
|
+
* was paid is dropped rather than drawn as a saving of zero or less.
|
|
3701
3710
|
*/
|
|
3702
3711
|
compare_at_unit_price: z.ZodOptional<z.ZodObject<{
|
|
3703
3712
|
amount: z.ZodNumber;
|
package/dist/index.mjs
CHANGED
|
@@ -6473,22 +6473,23 @@ function renderValue(key, pricing, format, t) {
|
|
|
6473
6473
|
}
|
|
6474
6474
|
return key === "discount" ? null : format(pricing[key]);
|
|
6475
6475
|
}
|
|
6476
|
-
const lines$1 = "
|
|
6477
|
-
const line$2 = "
|
|
6478
|
-
const thumb$2 = "
|
|
6479
|
-
const image$9 = "
|
|
6480
|
-
const placeholder$8 = "
|
|
6481
|
-
const lineBody = "
|
|
6482
|
-
const lineText = "
|
|
6483
|
-
const lineTitle = "
|
|
6484
|
-
const lineMeta = "
|
|
6485
|
-
const
|
|
6486
|
-
const
|
|
6487
|
-
const
|
|
6488
|
-
const
|
|
6489
|
-
const
|
|
6490
|
-
const
|
|
6491
|
-
const
|
|
6476
|
+
const lines$1 = "_lines_1vmnm_19";
|
|
6477
|
+
const line$2 = "_line_1vmnm_19";
|
|
6478
|
+
const thumb$2 = "_thumb_1vmnm_34";
|
|
6479
|
+
const image$9 = "_image_1vmnm_44";
|
|
6480
|
+
const placeholder$8 = "_placeholder_1vmnm_48";
|
|
6481
|
+
const lineBody = "_lineBody_1vmnm_53";
|
|
6482
|
+
const lineText = "_lineText_1vmnm_62";
|
|
6483
|
+
const lineTitle = "_lineTitle_1vmnm_72";
|
|
6484
|
+
const lineMeta = "_lineMeta_1vmnm_104";
|
|
6485
|
+
const detail$1 = "_detail_1vmnm_101";
|
|
6486
|
+
const linePrice = "_linePrice_1vmnm_125";
|
|
6487
|
+
const paid$3 = "_paid_1vmnm_137";
|
|
6488
|
+
const was$4 = "_was_1vmnm_150";
|
|
6489
|
+
const card$4 = "_card_1vmnm_173";
|
|
6490
|
+
const cardTitle = "_cardTitle_1vmnm_181";
|
|
6491
|
+
const cardBody = "_cardBody_1vmnm_193";
|
|
6492
|
+
const summaryCard = "_summaryCard_1vmnm_165";
|
|
6492
6493
|
const styles$D = {
|
|
6493
6494
|
lines: lines$1,
|
|
6494
6495
|
line: line$2,
|
|
@@ -6499,6 +6500,7 @@ const styles$D = {
|
|
|
6499
6500
|
lineText,
|
|
6500
6501
|
lineTitle,
|
|
6501
6502
|
lineMeta,
|
|
6503
|
+
detail: detail$1,
|
|
6502
6504
|
linePrice,
|
|
6503
6505
|
paid: paid$3,
|
|
6504
6506
|
was: was$4,
|
|
@@ -6550,6 +6552,7 @@ function OrderLine({ item: item2 }) {
|
|
|
6550
6552
|
}), jsxs("span", {
|
|
6551
6553
|
className: styles$D.lineMeta,
|
|
6552
6554
|
children: [details2.map((detail2) => jsx("span", {
|
|
6555
|
+
className: styles$D.detail,
|
|
6553
6556
|
children: detail2
|
|
6554
6557
|
}, detail2)), pct !== void 0 && jsx(SaleBadge, {
|
|
6555
6558
|
pct
|
|
@@ -8050,21 +8053,21 @@ function formatPlaced(iso, locale) {
|
|
|
8050
8053
|
year: "numeric"
|
|
8051
8054
|
})}`;
|
|
8052
8055
|
}
|
|
8053
|
-
const tile$1 = "
|
|
8054
|
-
const media$2 = "
|
|
8055
|
-
const image$7 = "
|
|
8056
|
-
const placeholder$4 = "
|
|
8057
|
-
const topBadge = "
|
|
8058
|
-
const saleBadge$2 = "
|
|
8059
|
-
const oos$3 = "
|
|
8060
|
-
const bottom = "
|
|
8061
|
-
const titlePrice$1 = "
|
|
8062
|
-
const title$f = "
|
|
8063
|
-
const swatches = "
|
|
8064
|
-
const swatch = "
|
|
8065
|
-
const swatchActive = "
|
|
8066
|
-
const swatchDot = "
|
|
8067
|
-
const large = "
|
|
8056
|
+
const tile$1 = "_tile_1a177_7";
|
|
8057
|
+
const media$2 = "_media_1a177_15";
|
|
8058
|
+
const image$7 = "_image_1a177_25";
|
|
8059
|
+
const placeholder$4 = "_placeholder_1a177_29";
|
|
8060
|
+
const topBadge = "_topBadge_1a177_37";
|
|
8061
|
+
const saleBadge$2 = "_saleBadge_1a177_78";
|
|
8062
|
+
const oos$3 = "_oos_1a177_86";
|
|
8063
|
+
const bottom = "_bottom_1a177_113";
|
|
8064
|
+
const titlePrice$1 = "_titlePrice_1a177_100";
|
|
8065
|
+
const title$f = "_title_1a177_5";
|
|
8066
|
+
const swatches = "_swatches_1a177_181";
|
|
8067
|
+
const swatch = "_swatch_1a177_181";
|
|
8068
|
+
const swatchActive = "_swatchActive_1a177_198";
|
|
8069
|
+
const swatchDot = "_swatchDot_1a177_202";
|
|
8070
|
+
const large = "_large_1a177_213";
|
|
8068
8071
|
const styles$t = {
|
|
8069
8072
|
tile: tile$1,
|
|
8070
8073
|
media: media$2,
|
|
@@ -6473,22 +6473,23 @@ function renderValue(key, pricing, format, t) {
|
|
|
6473
6473
|
}
|
|
6474
6474
|
return key === "discount" ? null : format(pricing[key]);
|
|
6475
6475
|
}
|
|
6476
|
-
const lines$1 = "
|
|
6477
|
-
const line$2 = "
|
|
6478
|
-
const thumb$2 = "
|
|
6479
|
-
const image$9 = "
|
|
6480
|
-
const placeholder$8 = "
|
|
6481
|
-
const lineBody = "
|
|
6482
|
-
const lineText = "
|
|
6483
|
-
const lineTitle = "
|
|
6484
|
-
const lineMeta = "
|
|
6485
|
-
const
|
|
6486
|
-
const
|
|
6487
|
-
const
|
|
6488
|
-
const
|
|
6489
|
-
const
|
|
6490
|
-
const
|
|
6491
|
-
const
|
|
6476
|
+
const lines$1 = "_lines_1vmnm_19";
|
|
6477
|
+
const line$2 = "_line_1vmnm_19";
|
|
6478
|
+
const thumb$2 = "_thumb_1vmnm_34";
|
|
6479
|
+
const image$9 = "_image_1vmnm_44";
|
|
6480
|
+
const placeholder$8 = "_placeholder_1vmnm_48";
|
|
6481
|
+
const lineBody = "_lineBody_1vmnm_53";
|
|
6482
|
+
const lineText = "_lineText_1vmnm_62";
|
|
6483
|
+
const lineTitle = "_lineTitle_1vmnm_72";
|
|
6484
|
+
const lineMeta = "_lineMeta_1vmnm_104";
|
|
6485
|
+
const detail$1 = "_detail_1vmnm_101";
|
|
6486
|
+
const linePrice = "_linePrice_1vmnm_125";
|
|
6487
|
+
const paid$3 = "_paid_1vmnm_137";
|
|
6488
|
+
const was$4 = "_was_1vmnm_150";
|
|
6489
|
+
const card$4 = "_card_1vmnm_173";
|
|
6490
|
+
const cardTitle = "_cardTitle_1vmnm_181";
|
|
6491
|
+
const cardBody = "_cardBody_1vmnm_193";
|
|
6492
|
+
const summaryCard = "_summaryCard_1vmnm_165";
|
|
6492
6493
|
const styles$D = {
|
|
6493
6494
|
lines: lines$1,
|
|
6494
6495
|
line: line$2,
|
|
@@ -6499,6 +6500,7 @@ const styles$D = {
|
|
|
6499
6500
|
lineText,
|
|
6500
6501
|
lineTitle,
|
|
6501
6502
|
lineMeta,
|
|
6503
|
+
detail: detail$1,
|
|
6502
6504
|
linePrice,
|
|
6503
6505
|
paid: paid$3,
|
|
6504
6506
|
was: was$4,
|
|
@@ -6550,6 +6552,7 @@ function OrderLine({ item: item2 }) {
|
|
|
6550
6552
|
}), jsxs("span", {
|
|
6551
6553
|
className: styles$D.lineMeta,
|
|
6552
6554
|
children: [details2.map((detail2) => jsx("span", {
|
|
6555
|
+
className: styles$D.detail,
|
|
6553
6556
|
children: detail2
|
|
6554
6557
|
}, detail2)), pct !== void 0 && jsx(SaleBadge, {
|
|
6555
6558
|
pct
|
|
@@ -8050,21 +8053,21 @@ function formatPlaced(iso, locale) {
|
|
|
8050
8053
|
year: "numeric"
|
|
8051
8054
|
})}`;
|
|
8052
8055
|
}
|
|
8053
|
-
const tile$1 = "
|
|
8054
|
-
const media$2 = "
|
|
8055
|
-
const image$7 = "
|
|
8056
|
-
const placeholder$4 = "
|
|
8057
|
-
const topBadge = "
|
|
8058
|
-
const saleBadge$2 = "
|
|
8059
|
-
const oos$3 = "
|
|
8060
|
-
const bottom = "
|
|
8061
|
-
const titlePrice$1 = "
|
|
8062
|
-
const title$f = "
|
|
8063
|
-
const swatches = "
|
|
8064
|
-
const swatch = "
|
|
8065
|
-
const swatchActive = "
|
|
8066
|
-
const swatchDot = "
|
|
8067
|
-
const large = "
|
|
8056
|
+
const tile$1 = "_tile_1a177_7";
|
|
8057
|
+
const media$2 = "_media_1a177_15";
|
|
8058
|
+
const image$7 = "_image_1a177_25";
|
|
8059
|
+
const placeholder$4 = "_placeholder_1a177_29";
|
|
8060
|
+
const topBadge = "_topBadge_1a177_37";
|
|
8061
|
+
const saleBadge$2 = "_saleBadge_1a177_78";
|
|
8062
|
+
const oos$3 = "_oos_1a177_86";
|
|
8063
|
+
const bottom = "_bottom_1a177_113";
|
|
8064
|
+
const titlePrice$1 = "_titlePrice_1a177_100";
|
|
8065
|
+
const title$f = "_title_1a177_5";
|
|
8066
|
+
const swatches = "_swatches_1a177_181";
|
|
8067
|
+
const swatch = "_swatch_1a177_181";
|
|
8068
|
+
const swatchActive = "_swatchActive_1a177_198";
|
|
8069
|
+
const swatchDot = "_swatchDot_1a177_202";
|
|
8070
|
+
const large = "_large_1a177_213";
|
|
8068
8071
|
const styles$t = {
|
|
8069
8072
|
tile: tile$1,
|
|
8070
8073
|
media: media$2,
|
|
@@ -38,6 +38,8 @@
|
|
|
38
38
|
--color-surface-bold: #6d7377;
|
|
39
39
|
--color-border-default: #dddedf;
|
|
40
40
|
--color-border-subtle: #ced0d2;
|
|
41
|
+
--color-border-full-color-subtle: #6d7377;
|
|
42
|
+
--color-border-full-color-max: #f9fafa;
|
|
41
43
|
--color-border-transparent-soft: rgba(0, 0, 0, 0.1);
|
|
42
44
|
--color-state-text-success: #147e4a;
|
|
43
45
|
--color-state-surface-success-soft: #def1e9;
|
|
@@ -683,7 +685,7 @@
|
|
|
683
685
|
._row_1hsxt_16._discount_1hsxt_69 dd {
|
|
684
686
|
color: var(--color-state-text-success);
|
|
685
687
|
}
|
|
686
|
-
.
|
|
688
|
+
._lines_1vmnm_19 {
|
|
687
689
|
list-style: none;
|
|
688
690
|
margin: 0;
|
|
689
691
|
padding: 0;
|
|
@@ -691,12 +693,12 @@
|
|
|
691
693
|
flex-direction: column;
|
|
692
694
|
gap: var(--space-16);
|
|
693
695
|
}
|
|
694
|
-
.
|
|
696
|
+
._line_1vmnm_19 {
|
|
695
697
|
display: flex;
|
|
696
698
|
align-items: center;
|
|
697
699
|
gap: var(--space-12);
|
|
698
700
|
}
|
|
699
|
-
.
|
|
701
|
+
._thumb_1vmnm_34 {
|
|
700
702
|
position: relative;
|
|
701
703
|
flex-shrink: 0;
|
|
702
704
|
width: 48px;
|
|
@@ -705,14 +707,14 @@
|
|
|
705
707
|
overflow: hidden;
|
|
706
708
|
background: var(--color-surface-soft);
|
|
707
709
|
}
|
|
708
|
-
.
|
|
710
|
+
._image_1vmnm_44 {
|
|
709
711
|
object-fit: cover;
|
|
710
712
|
}
|
|
711
|
-
.
|
|
713
|
+
._placeholder_1vmnm_48 {
|
|
712
714
|
width: 100%;
|
|
713
715
|
height: 100%;
|
|
714
716
|
}
|
|
715
|
-
.
|
|
717
|
+
._lineBody_1vmnm_53 {
|
|
716
718
|
display: flex;
|
|
717
719
|
align-items: flex-start;
|
|
718
720
|
justify-content: space-between;
|
|
@@ -720,14 +722,14 @@
|
|
|
720
722
|
flex: 1 1 0;
|
|
721
723
|
min-width: 0;
|
|
722
724
|
}
|
|
723
|
-
.
|
|
725
|
+
._lineText_1vmnm_62 {
|
|
724
726
|
display: flex;
|
|
725
727
|
flex-direction: column;
|
|
726
728
|
gap: var(--space-12);
|
|
727
729
|
flex: 1 1 0;
|
|
728
730
|
min-width: 0;
|
|
729
731
|
}
|
|
730
|
-
.
|
|
732
|
+
._lineTitle_1vmnm_72 {
|
|
731
733
|
margin: -6px 0;
|
|
732
734
|
padding: 6px 0;
|
|
733
735
|
font-size: var(--type-trimmed-sm-size);
|
|
@@ -737,16 +739,20 @@
|
|
|
737
739
|
overflow: hidden;
|
|
738
740
|
text-overflow: ellipsis;
|
|
739
741
|
}
|
|
740
|
-
.
|
|
742
|
+
._lineMeta_1vmnm_104 {
|
|
741
743
|
display: flex;
|
|
742
744
|
align-items: center;
|
|
743
|
-
|
|
745
|
+
flex-wrap: wrap;
|
|
746
|
+
gap: var(--space-6);
|
|
744
747
|
min-width: 0;
|
|
745
748
|
font-size: var(--type-trimmed-sm-size);
|
|
746
749
|
line-height: 11px;
|
|
747
750
|
color: var(--color-text-subtle);
|
|
748
751
|
}
|
|
749
|
-
.
|
|
752
|
+
._detail_1vmnm_101 {
|
|
753
|
+
white-space: nowrap;
|
|
754
|
+
}
|
|
755
|
+
._linePrice_1vmnm_125 {
|
|
750
756
|
display: flex;
|
|
751
757
|
flex-direction: column;
|
|
752
758
|
align-items: flex-end;
|
|
@@ -755,26 +761,29 @@
|
|
|
755
761
|
white-space: nowrap;
|
|
756
762
|
font-variant-numeric: tabular-nums;
|
|
757
763
|
}
|
|
758
|
-
.
|
|
764
|
+
._paid_1vmnm_137 {
|
|
759
765
|
font-size: var(--type-trimmed-md-size);
|
|
760
766
|
line-height: 11px;
|
|
761
767
|
font-weight: var(--font-weight-bold);
|
|
762
768
|
}
|
|
763
|
-
.
|
|
769
|
+
._was_1vmnm_150 {
|
|
770
|
+
display: flex;
|
|
771
|
+
align-items: center;
|
|
772
|
+
justify-content: flex-end;
|
|
764
773
|
font-size: var(--type-trimmed-sm-size);
|
|
765
774
|
line-height: 10px;
|
|
766
775
|
font-weight: var(--font-weight-regular);
|
|
767
776
|
color: var(--color-text-disabled);
|
|
768
777
|
text-decoration: line-through;
|
|
769
778
|
}
|
|
770
|
-
.
|
|
779
|
+
._card_1vmnm_173 {
|
|
771
780
|
display: flex;
|
|
772
781
|
flex-direction: column;
|
|
773
782
|
box-shadow: inset 0 0 0 1px var(--color-border-default);
|
|
774
783
|
border-radius: var(--radius-18);
|
|
775
784
|
overflow: hidden;
|
|
776
785
|
}
|
|
777
|
-
.
|
|
786
|
+
._cardTitle_1vmnm_181 {
|
|
778
787
|
display: flex;
|
|
779
788
|
align-items: center;
|
|
780
789
|
margin: 0;
|
|
@@ -785,16 +794,16 @@
|
|
|
785
794
|
line-height: 1.38;
|
|
786
795
|
font-weight: var(--font-weight-bold);
|
|
787
796
|
}
|
|
788
|
-
.
|
|
797
|
+
._cardBody_1vmnm_193 {
|
|
789
798
|
margin: 0;
|
|
790
799
|
padding: var(--space-16);
|
|
791
800
|
font-size: var(--type-trimmed-sm-size);
|
|
792
801
|
line-height: 1.5;
|
|
793
802
|
}
|
|
794
|
-
.
|
|
803
|
+
._summaryCard_1vmnm_165 {
|
|
795
804
|
background: var(--color-surface-soft);
|
|
796
805
|
}
|
|
797
|
-
.
|
|
806
|
+
._summaryCard_1vmnm_165 > :last-child {
|
|
798
807
|
padding: 0 var(--space-16);
|
|
799
808
|
}
|
|
800
809
|
._header_1f3nh_7 {
|
|
@@ -1699,14 +1708,14 @@
|
|
|
1699
1708
|
height: 24px;
|
|
1700
1709
|
color: var(--color-text-default);
|
|
1701
1710
|
}
|
|
1702
|
-
.
|
|
1711
|
+
._tile_1a177_7 {
|
|
1703
1712
|
display: flex;
|
|
1704
1713
|
flex-direction: column;
|
|
1705
1714
|
gap: var(--space-12);
|
|
1706
1715
|
text-decoration: none;
|
|
1707
1716
|
color: inherit;
|
|
1708
1717
|
}
|
|
1709
|
-
.
|
|
1718
|
+
._media_1a177_15 {
|
|
1710
1719
|
position: relative;
|
|
1711
1720
|
width: 100%;
|
|
1712
1721
|
aspect-ratio: 165 / 220;
|
|
@@ -1714,15 +1723,15 @@
|
|
|
1714
1723
|
overflow: hidden;
|
|
1715
1724
|
background: var(--color-surface-soft);
|
|
1716
1725
|
}
|
|
1717
|
-
.
|
|
1726
|
+
._image_1a177_25 {
|
|
1718
1727
|
object-fit: cover;
|
|
1719
1728
|
}
|
|
1720
|
-
.
|
|
1729
|
+
._placeholder_1a177_29 {
|
|
1721
1730
|
width: 100%;
|
|
1722
1731
|
height: 100%;
|
|
1723
1732
|
background: var(--color-surface-soft);
|
|
1724
1733
|
}
|
|
1725
|
-
.
|
|
1734
|
+
._topBadge_1a177_37 {
|
|
1726
1735
|
position: absolute;
|
|
1727
1736
|
top: var(--space-8);
|
|
1728
1737
|
left: var(--space-8);
|
|
@@ -1743,13 +1752,13 @@
|
|
|
1743
1752
|
text-transform: uppercase;
|
|
1744
1753
|
white-space: nowrap;
|
|
1745
1754
|
}
|
|
1746
|
-
.
|
|
1755
|
+
._saleBadge_1a177_78 {
|
|
1747
1756
|
position: absolute;
|
|
1748
1757
|
display: flex;
|
|
1749
1758
|
bottom: var(--space-8);
|
|
1750
1759
|
left: var(--space-8);
|
|
1751
1760
|
}
|
|
1752
|
-
.
|
|
1761
|
+
._oos_1a177_86 {
|
|
1753
1762
|
position: absolute;
|
|
1754
1763
|
inset: 0;
|
|
1755
1764
|
display: flex;
|
|
@@ -1761,17 +1770,17 @@
|
|
|
1761
1770
|
font-size: var(--type-trimmed-sm-size);
|
|
1762
1771
|
font-weight: var(--font-weight-bold);
|
|
1763
1772
|
}
|
|
1764
|
-
.
|
|
1773
|
+
._bottom_1a177_113 {
|
|
1765
1774
|
display: flex;
|
|
1766
1775
|
flex-direction: column;
|
|
1767
1776
|
gap: var(--space-16);
|
|
1768
1777
|
}
|
|
1769
|
-
.
|
|
1778
|
+
._titlePrice_1a177_100 {
|
|
1770
1779
|
display: flex;
|
|
1771
1780
|
flex-direction: column;
|
|
1772
1781
|
gap: var(--space-16);
|
|
1773
1782
|
}
|
|
1774
|
-
.
|
|
1783
|
+
._title_1a177_5 {
|
|
1775
1784
|
font-size: var(--type-paragraph-size);
|
|
1776
1785
|
line-height: 21px;
|
|
1777
1786
|
padding: 5px 0;
|
|
@@ -1785,41 +1794,41 @@
|
|
|
1785
1794
|
overflow: hidden;
|
|
1786
1795
|
min-height: calc(2 * 21px + 10px);
|
|
1787
1796
|
}
|
|
1788
|
-
.
|
|
1797
|
+
._titlePrice_1a177_100 > :last-child {
|
|
1789
1798
|
line-height: 11px;
|
|
1790
1799
|
}
|
|
1791
|
-
.
|
|
1800
|
+
._swatches_1a177_181 {
|
|
1792
1801
|
display: flex;
|
|
1793
1802
|
gap: var(--space-4);
|
|
1794
1803
|
align-items: center;
|
|
1795
1804
|
}
|
|
1796
|
-
.
|
|
1805
|
+
._swatch_1a177_181 {
|
|
1797
1806
|
display: inline-flex;
|
|
1798
1807
|
padding: 2px;
|
|
1799
|
-
box-shadow: inset 0 0 0 0.5px var(--color-border-subtle);
|
|
1808
|
+
box-shadow: inset 0 0 0 0.5px var(--color-border-full-color-subtle);
|
|
1800
1809
|
border-radius: var(--radius-2);
|
|
1801
1810
|
}
|
|
1802
|
-
.
|
|
1803
|
-
box-shadow: inset 0 0 0 0.5px var(--color-
|
|
1811
|
+
._swatchActive_1a177_198 {
|
|
1812
|
+
box-shadow: inset 0 0 0 0.5px var(--color-border-full-color-max);
|
|
1804
1813
|
}
|
|
1805
|
-
.
|
|
1814
|
+
._swatchDot_1a177_202 {
|
|
1806
1815
|
display: block;
|
|
1807
1816
|
width: 14px;
|
|
1808
1817
|
height: 14px;
|
|
1809
1818
|
border-radius: var(--radius-2);
|
|
1810
1819
|
}
|
|
1811
|
-
.
|
|
1820
|
+
._large_1a177_213 {
|
|
1812
1821
|
padding: 0 var(--space-16);
|
|
1813
1822
|
}
|
|
1814
|
-
.
|
|
1823
|
+
._large_1a177_213 ._media_1a177_15 {
|
|
1815
1824
|
aspect-ratio: 343 / 457;
|
|
1816
1825
|
}
|
|
1817
|
-
.
|
|
1826
|
+
._large_1a177_213 ._title_1a177_5 {
|
|
1818
1827
|
font-size: 18px;
|
|
1819
1828
|
line-height: 23px;
|
|
1820
1829
|
min-height: 0;
|
|
1821
1830
|
}
|
|
1822
|
-
.
|
|
1831
|
+
._tile_1a177_7:not(._large_1a177_213) ._swatches_1a177_181 {
|
|
1823
1832
|
display: none;
|
|
1824
1833
|
}
|
|
1825
1834
|
._section_1n5an_5 {
|
package/dist/styles.css
CHANGED
|
@@ -38,6 +38,8 @@
|
|
|
38
38
|
--color-surface-bold: #6d7377;
|
|
39
39
|
--color-border-default: #dddedf;
|
|
40
40
|
--color-border-subtle: #ced0d2;
|
|
41
|
+
--color-border-full-color-subtle: #6d7377;
|
|
42
|
+
--color-border-full-color-max: #f9fafa;
|
|
41
43
|
--color-border-transparent-soft: rgba(0, 0, 0, 0.1);
|
|
42
44
|
--color-state-text-success: #147e4a;
|
|
43
45
|
--color-state-surface-success-soft: #def1e9;
|
|
@@ -683,7 +685,7 @@
|
|
|
683
685
|
._row_1hsxt_16._discount_1hsxt_69 dd {
|
|
684
686
|
color: var(--color-state-text-success);
|
|
685
687
|
}
|
|
686
|
-
.
|
|
688
|
+
._lines_1vmnm_19 {
|
|
687
689
|
list-style: none;
|
|
688
690
|
margin: 0;
|
|
689
691
|
padding: 0;
|
|
@@ -691,12 +693,12 @@
|
|
|
691
693
|
flex-direction: column;
|
|
692
694
|
gap: var(--space-16);
|
|
693
695
|
}
|
|
694
|
-
.
|
|
696
|
+
._line_1vmnm_19 {
|
|
695
697
|
display: flex;
|
|
696
698
|
align-items: center;
|
|
697
699
|
gap: var(--space-12);
|
|
698
700
|
}
|
|
699
|
-
.
|
|
701
|
+
._thumb_1vmnm_34 {
|
|
700
702
|
position: relative;
|
|
701
703
|
flex-shrink: 0;
|
|
702
704
|
width: 48px;
|
|
@@ -705,14 +707,14 @@
|
|
|
705
707
|
overflow: hidden;
|
|
706
708
|
background: var(--color-surface-soft);
|
|
707
709
|
}
|
|
708
|
-
.
|
|
710
|
+
._image_1vmnm_44 {
|
|
709
711
|
object-fit: cover;
|
|
710
712
|
}
|
|
711
|
-
.
|
|
713
|
+
._placeholder_1vmnm_48 {
|
|
712
714
|
width: 100%;
|
|
713
715
|
height: 100%;
|
|
714
716
|
}
|
|
715
|
-
.
|
|
717
|
+
._lineBody_1vmnm_53 {
|
|
716
718
|
display: flex;
|
|
717
719
|
align-items: flex-start;
|
|
718
720
|
justify-content: space-between;
|
|
@@ -720,14 +722,14 @@
|
|
|
720
722
|
flex: 1 1 0;
|
|
721
723
|
min-width: 0;
|
|
722
724
|
}
|
|
723
|
-
.
|
|
725
|
+
._lineText_1vmnm_62 {
|
|
724
726
|
display: flex;
|
|
725
727
|
flex-direction: column;
|
|
726
728
|
gap: var(--space-12);
|
|
727
729
|
flex: 1 1 0;
|
|
728
730
|
min-width: 0;
|
|
729
731
|
}
|
|
730
|
-
.
|
|
732
|
+
._lineTitle_1vmnm_72 {
|
|
731
733
|
margin: -6px 0;
|
|
732
734
|
padding: 6px 0;
|
|
733
735
|
font-size: var(--type-trimmed-sm-size);
|
|
@@ -737,16 +739,20 @@
|
|
|
737
739
|
overflow: hidden;
|
|
738
740
|
text-overflow: ellipsis;
|
|
739
741
|
}
|
|
740
|
-
.
|
|
742
|
+
._lineMeta_1vmnm_104 {
|
|
741
743
|
display: flex;
|
|
742
744
|
align-items: center;
|
|
743
|
-
|
|
745
|
+
flex-wrap: wrap;
|
|
746
|
+
gap: var(--space-6);
|
|
744
747
|
min-width: 0;
|
|
745
748
|
font-size: var(--type-trimmed-sm-size);
|
|
746
749
|
line-height: 11px;
|
|
747
750
|
color: var(--color-text-subtle);
|
|
748
751
|
}
|
|
749
|
-
.
|
|
752
|
+
._detail_1vmnm_101 {
|
|
753
|
+
white-space: nowrap;
|
|
754
|
+
}
|
|
755
|
+
._linePrice_1vmnm_125 {
|
|
750
756
|
display: flex;
|
|
751
757
|
flex-direction: column;
|
|
752
758
|
align-items: flex-end;
|
|
@@ -755,26 +761,29 @@
|
|
|
755
761
|
white-space: nowrap;
|
|
756
762
|
font-variant-numeric: tabular-nums;
|
|
757
763
|
}
|
|
758
|
-
.
|
|
764
|
+
._paid_1vmnm_137 {
|
|
759
765
|
font-size: var(--type-trimmed-md-size);
|
|
760
766
|
line-height: 11px;
|
|
761
767
|
font-weight: var(--font-weight-bold);
|
|
762
768
|
}
|
|
763
|
-
.
|
|
769
|
+
._was_1vmnm_150 {
|
|
770
|
+
display: flex;
|
|
771
|
+
align-items: center;
|
|
772
|
+
justify-content: flex-end;
|
|
764
773
|
font-size: var(--type-trimmed-sm-size);
|
|
765
774
|
line-height: 10px;
|
|
766
775
|
font-weight: var(--font-weight-regular);
|
|
767
776
|
color: var(--color-text-disabled);
|
|
768
777
|
text-decoration: line-through;
|
|
769
778
|
}
|
|
770
|
-
.
|
|
779
|
+
._card_1vmnm_173 {
|
|
771
780
|
display: flex;
|
|
772
781
|
flex-direction: column;
|
|
773
782
|
box-shadow: inset 0 0 0 1px var(--color-border-default);
|
|
774
783
|
border-radius: var(--radius-18);
|
|
775
784
|
overflow: hidden;
|
|
776
785
|
}
|
|
777
|
-
.
|
|
786
|
+
._cardTitle_1vmnm_181 {
|
|
778
787
|
display: flex;
|
|
779
788
|
align-items: center;
|
|
780
789
|
margin: 0;
|
|
@@ -785,16 +794,16 @@
|
|
|
785
794
|
line-height: 1.38;
|
|
786
795
|
font-weight: var(--font-weight-bold);
|
|
787
796
|
}
|
|
788
|
-
.
|
|
797
|
+
._cardBody_1vmnm_193 {
|
|
789
798
|
margin: 0;
|
|
790
799
|
padding: var(--space-16);
|
|
791
800
|
font-size: var(--type-trimmed-sm-size);
|
|
792
801
|
line-height: 1.5;
|
|
793
802
|
}
|
|
794
|
-
.
|
|
803
|
+
._summaryCard_1vmnm_165 {
|
|
795
804
|
background: var(--color-surface-soft);
|
|
796
805
|
}
|
|
797
|
-
.
|
|
806
|
+
._summaryCard_1vmnm_165 > :last-child {
|
|
798
807
|
padding: 0 var(--space-16);
|
|
799
808
|
}
|
|
800
809
|
._header_1f3nh_7 {
|
|
@@ -1699,14 +1708,14 @@
|
|
|
1699
1708
|
height: 24px;
|
|
1700
1709
|
color: var(--color-text-default);
|
|
1701
1710
|
}
|
|
1702
|
-
.
|
|
1711
|
+
._tile_1a177_7 {
|
|
1703
1712
|
display: flex;
|
|
1704
1713
|
flex-direction: column;
|
|
1705
1714
|
gap: var(--space-12);
|
|
1706
1715
|
text-decoration: none;
|
|
1707
1716
|
color: inherit;
|
|
1708
1717
|
}
|
|
1709
|
-
.
|
|
1718
|
+
._media_1a177_15 {
|
|
1710
1719
|
position: relative;
|
|
1711
1720
|
width: 100%;
|
|
1712
1721
|
aspect-ratio: 165 / 220;
|
|
@@ -1714,15 +1723,15 @@
|
|
|
1714
1723
|
overflow: hidden;
|
|
1715
1724
|
background: var(--color-surface-soft);
|
|
1716
1725
|
}
|
|
1717
|
-
.
|
|
1726
|
+
._image_1a177_25 {
|
|
1718
1727
|
object-fit: cover;
|
|
1719
1728
|
}
|
|
1720
|
-
.
|
|
1729
|
+
._placeholder_1a177_29 {
|
|
1721
1730
|
width: 100%;
|
|
1722
1731
|
height: 100%;
|
|
1723
1732
|
background: var(--color-surface-soft);
|
|
1724
1733
|
}
|
|
1725
|
-
.
|
|
1734
|
+
._topBadge_1a177_37 {
|
|
1726
1735
|
position: absolute;
|
|
1727
1736
|
top: var(--space-8);
|
|
1728
1737
|
left: var(--space-8);
|
|
@@ -1743,13 +1752,13 @@
|
|
|
1743
1752
|
text-transform: uppercase;
|
|
1744
1753
|
white-space: nowrap;
|
|
1745
1754
|
}
|
|
1746
|
-
.
|
|
1755
|
+
._saleBadge_1a177_78 {
|
|
1747
1756
|
position: absolute;
|
|
1748
1757
|
display: flex;
|
|
1749
1758
|
bottom: var(--space-8);
|
|
1750
1759
|
left: var(--space-8);
|
|
1751
1760
|
}
|
|
1752
|
-
.
|
|
1761
|
+
._oos_1a177_86 {
|
|
1753
1762
|
position: absolute;
|
|
1754
1763
|
inset: 0;
|
|
1755
1764
|
display: flex;
|
|
@@ -1761,17 +1770,17 @@
|
|
|
1761
1770
|
font-size: var(--type-trimmed-sm-size);
|
|
1762
1771
|
font-weight: var(--font-weight-bold);
|
|
1763
1772
|
}
|
|
1764
|
-
.
|
|
1773
|
+
._bottom_1a177_113 {
|
|
1765
1774
|
display: flex;
|
|
1766
1775
|
flex-direction: column;
|
|
1767
1776
|
gap: var(--space-16);
|
|
1768
1777
|
}
|
|
1769
|
-
.
|
|
1778
|
+
._titlePrice_1a177_100 {
|
|
1770
1779
|
display: flex;
|
|
1771
1780
|
flex-direction: column;
|
|
1772
1781
|
gap: var(--space-16);
|
|
1773
1782
|
}
|
|
1774
|
-
.
|
|
1783
|
+
._title_1a177_5 {
|
|
1775
1784
|
font-size: var(--type-paragraph-size);
|
|
1776
1785
|
line-height: 21px;
|
|
1777
1786
|
padding: 5px 0;
|
|
@@ -1785,41 +1794,41 @@
|
|
|
1785
1794
|
overflow: hidden;
|
|
1786
1795
|
min-height: calc(2 * 21px + 10px);
|
|
1787
1796
|
}
|
|
1788
|
-
.
|
|
1797
|
+
._titlePrice_1a177_100 > :last-child {
|
|
1789
1798
|
line-height: 11px;
|
|
1790
1799
|
}
|
|
1791
|
-
.
|
|
1800
|
+
._swatches_1a177_181 {
|
|
1792
1801
|
display: flex;
|
|
1793
1802
|
gap: var(--space-4);
|
|
1794
1803
|
align-items: center;
|
|
1795
1804
|
}
|
|
1796
|
-
.
|
|
1805
|
+
._swatch_1a177_181 {
|
|
1797
1806
|
display: inline-flex;
|
|
1798
1807
|
padding: 2px;
|
|
1799
|
-
box-shadow: inset 0 0 0 0.5px var(--color-border-subtle);
|
|
1808
|
+
box-shadow: inset 0 0 0 0.5px var(--color-border-full-color-subtle);
|
|
1800
1809
|
border-radius: var(--radius-2);
|
|
1801
1810
|
}
|
|
1802
|
-
.
|
|
1803
|
-
box-shadow: inset 0 0 0 0.5px var(--color-
|
|
1811
|
+
._swatchActive_1a177_198 {
|
|
1812
|
+
box-shadow: inset 0 0 0 0.5px var(--color-border-full-color-max);
|
|
1804
1813
|
}
|
|
1805
|
-
.
|
|
1814
|
+
._swatchDot_1a177_202 {
|
|
1806
1815
|
display: block;
|
|
1807
1816
|
width: 14px;
|
|
1808
1817
|
height: 14px;
|
|
1809
1818
|
border-radius: var(--radius-2);
|
|
1810
1819
|
}
|
|
1811
|
-
.
|
|
1820
|
+
._large_1a177_213 {
|
|
1812
1821
|
padding: 0 var(--space-16);
|
|
1813
1822
|
}
|
|
1814
|
-
.
|
|
1823
|
+
._large_1a177_213 ._media_1a177_15 {
|
|
1815
1824
|
aspect-ratio: 343 / 457;
|
|
1816
1825
|
}
|
|
1817
|
-
.
|
|
1826
|
+
._large_1a177_213 ._title_1a177_5 {
|
|
1818
1827
|
font-size: 18px;
|
|
1819
1828
|
line-height: 23px;
|
|
1820
1829
|
min-height: 0;
|
|
1821
1830
|
}
|
|
1822
|
-
.
|
|
1831
|
+
._tile_1a177_7:not(._large_1a177_213) ._swatches_1a177_181 {
|
|
1823
1832
|
display: none;
|
|
1824
1833
|
}
|
|
1825
1834
|
._section_1n5an_5 {
|
package/package.json
CHANGED
|
@@ -1,14 +1,11 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@nok-integration/storefront-react",
|
|
3
|
-
"version": "0.19.
|
|
3
|
+
"version": "0.19.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
|
-
"publishConfig": {
|
|
7
|
-
"access": "public",
|
|
8
|
-
"registry": "https://registry.npmjs.org/"
|
|
9
|
-
},
|
|
10
6
|
"type": "module",
|
|
11
7
|
"main": "./dist/index.mjs",
|
|
8
|
+
"module": "./dist/index.mjs",
|
|
12
9
|
"types": "./dist/index.d.ts",
|
|
13
10
|
"exports": {
|
|
14
11
|
".": {
|
|
@@ -23,34 +20,18 @@
|
|
|
23
20
|
"dist",
|
|
24
21
|
"!dist/**/*.map"
|
|
25
22
|
],
|
|
26
|
-
"
|
|
27
|
-
"
|
|
28
|
-
|
|
29
|
-
"build:standalone": "BUILD_TARGET=standalone vite build",
|
|
30
|
-
"typecheck": "tsc --noEmit",
|
|
31
|
-
"build:partner": "PARTNER_DROP=1 pnpm build && pnpm pack"
|
|
32
|
-
},
|
|
23
|
+
"sideEffects": [
|
|
24
|
+
"*.css"
|
|
25
|
+
],
|
|
33
26
|
"peerDependencies": {
|
|
34
27
|
"react": "^16.14.0 || ^17.0.0 || ^18.0.0 || ^19.0.0",
|
|
35
28
|
"react-dom": "^16.14.0 || ^17.0.0 || ^18.0.0 || ^19.0.0"
|
|
36
29
|
},
|
|
37
|
-
"devDependencies": {
|
|
38
|
-
"@microsoft/api-extractor": "^7.58.12",
|
|
39
|
-
"@raqmix/contracts": "^2.0.0",
|
|
40
|
-
"@types/react": "^19.1.0",
|
|
41
|
-
"@types/react-dom": "^19.1.0",
|
|
42
|
-
"@vitejs/plugin-react": "^4.3.4",
|
|
43
|
-
"esbuild": "^0.28.1",
|
|
44
|
-
"terser": "^5.50.0",
|
|
45
|
-
"typescript": "^5.7.3",
|
|
46
|
-
"vite": "^7.0.0",
|
|
47
|
-
"vite-plugin-dts": "^5.0.3"
|
|
48
|
-
},
|
|
49
|
-
"module": "./dist/index.mjs",
|
|
50
|
-
"sideEffects": [
|
|
51
|
-
"*.css"
|
|
52
|
-
],
|
|
53
30
|
"dependencies": {
|
|
54
31
|
"zod": "^3.24.1"
|
|
32
|
+
},
|
|
33
|
+
"publishConfig": {
|
|
34
|
+
"access": "public",
|
|
35
|
+
"registry": "https://registry.npmjs.org/"
|
|
55
36
|
}
|
|
56
37
|
}
|