@nok-integration/storefront-react 0.19.8 → 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.mjs CHANGED
@@ -8053,21 +8053,21 @@ function formatPlaced(iso, locale) {
8053
8053
  year: "numeric"
8054
8054
  })}`;
8055
8055
  }
8056
- const tile$1 = "_tile_1io44_7";
8057
- const media$2 = "_media_1io44_15";
8058
- const image$7 = "_image_1io44_25";
8059
- const placeholder$4 = "_placeholder_1io44_29";
8060
- const topBadge = "_topBadge_1io44_37";
8061
- const saleBadge$2 = "_saleBadge_1io44_78";
8062
- const oos$3 = "_oos_1io44_86";
8063
- const bottom = "_bottom_1io44_113";
8064
- const titlePrice$1 = "_titlePrice_1io44_100";
8065
- const title$f = "_title_1io44_5";
8066
- const swatches = "_swatches_1io44_179";
8067
- const swatch = "_swatch_1io44_179";
8068
- const swatchActive = "_swatchActive_1io44_196";
8069
- const swatchDot = "_swatchDot_1io44_200";
8070
- const large = "_large_1io44_211";
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";
8071
8071
  const styles$t = {
8072
8072
  tile: tile$1,
8073
8073
  media: media$2,
@@ -8053,21 +8053,21 @@ function formatPlaced(iso, locale) {
8053
8053
  year: "numeric"
8054
8054
  })}`;
8055
8055
  }
8056
- const tile$1 = "_tile_1io44_7";
8057
- const media$2 = "_media_1io44_15";
8058
- const image$7 = "_image_1io44_25";
8059
- const placeholder$4 = "_placeholder_1io44_29";
8060
- const topBadge = "_topBadge_1io44_37";
8061
- const saleBadge$2 = "_saleBadge_1io44_78";
8062
- const oos$3 = "_oos_1io44_86";
8063
- const bottom = "_bottom_1io44_113";
8064
- const titlePrice$1 = "_titlePrice_1io44_100";
8065
- const title$f = "_title_1io44_5";
8066
- const swatches = "_swatches_1io44_179";
8067
- const swatch = "_swatch_1io44_179";
8068
- const swatchActive = "_swatchActive_1io44_196";
8069
- const swatchDot = "_swatchDot_1io44_200";
8070
- const large = "_large_1io44_211";
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";
8071
8071
  const styles$t = {
8072
8072
  tile: tile$1,
8073
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;
@@ -1706,14 +1708,14 @@
1706
1708
  height: 24px;
1707
1709
  color: var(--color-text-default);
1708
1710
  }
1709
- ._tile_1io44_7 {
1711
+ ._tile_1a177_7 {
1710
1712
  display: flex;
1711
1713
  flex-direction: column;
1712
1714
  gap: var(--space-12);
1713
1715
  text-decoration: none;
1714
1716
  color: inherit;
1715
1717
  }
1716
- ._media_1io44_15 {
1718
+ ._media_1a177_15 {
1717
1719
  position: relative;
1718
1720
  width: 100%;
1719
1721
  aspect-ratio: 165 / 220;
@@ -1721,15 +1723,15 @@
1721
1723
  overflow: hidden;
1722
1724
  background: var(--color-surface-soft);
1723
1725
  }
1724
- ._image_1io44_25 {
1726
+ ._image_1a177_25 {
1725
1727
  object-fit: cover;
1726
1728
  }
1727
- ._placeholder_1io44_29 {
1729
+ ._placeholder_1a177_29 {
1728
1730
  width: 100%;
1729
1731
  height: 100%;
1730
1732
  background: var(--color-surface-soft);
1731
1733
  }
1732
- ._topBadge_1io44_37 {
1734
+ ._topBadge_1a177_37 {
1733
1735
  position: absolute;
1734
1736
  top: var(--space-8);
1735
1737
  left: var(--space-8);
@@ -1750,13 +1752,13 @@
1750
1752
  text-transform: uppercase;
1751
1753
  white-space: nowrap;
1752
1754
  }
1753
- ._saleBadge_1io44_78 {
1755
+ ._saleBadge_1a177_78 {
1754
1756
  position: absolute;
1755
1757
  display: flex;
1756
1758
  bottom: var(--space-8);
1757
1759
  left: var(--space-8);
1758
1760
  }
1759
- ._oos_1io44_86 {
1761
+ ._oos_1a177_86 {
1760
1762
  position: absolute;
1761
1763
  inset: 0;
1762
1764
  display: flex;
@@ -1768,17 +1770,17 @@
1768
1770
  font-size: var(--type-trimmed-sm-size);
1769
1771
  font-weight: var(--font-weight-bold);
1770
1772
  }
1771
- ._bottom_1io44_113 {
1773
+ ._bottom_1a177_113 {
1772
1774
  display: flex;
1773
1775
  flex-direction: column;
1774
1776
  gap: var(--space-16);
1775
1777
  }
1776
- ._titlePrice_1io44_100 {
1778
+ ._titlePrice_1a177_100 {
1777
1779
  display: flex;
1778
1780
  flex-direction: column;
1779
1781
  gap: var(--space-16);
1780
1782
  }
1781
- ._title_1io44_5 {
1783
+ ._title_1a177_5 {
1782
1784
  font-size: var(--type-paragraph-size);
1783
1785
  line-height: 21px;
1784
1786
  padding: 5px 0;
@@ -1792,41 +1794,41 @@
1792
1794
  overflow: hidden;
1793
1795
  min-height: calc(2 * 21px + 10px);
1794
1796
  }
1795
- ._titlePrice_1io44_100 > :last-child {
1797
+ ._titlePrice_1a177_100 > :last-child {
1796
1798
  line-height: 11px;
1797
1799
  }
1798
- ._swatches_1io44_179 {
1800
+ ._swatches_1a177_181 {
1799
1801
  display: flex;
1800
1802
  gap: var(--space-4);
1801
1803
  align-items: center;
1802
1804
  }
1803
- ._swatch_1io44_179 {
1805
+ ._swatch_1a177_181 {
1804
1806
  display: inline-flex;
1805
1807
  padding: 2px;
1806
- 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);
1807
1809
  border-radius: var(--radius-2);
1808
1810
  }
1809
- ._swatchActive_1io44_196 {
1810
- box-shadow: inset 0 0 0 0.5px var(--color-surface-max);
1811
+ ._swatchActive_1a177_198 {
1812
+ box-shadow: inset 0 0 0 0.5px var(--color-border-full-color-max);
1811
1813
  }
1812
- ._swatchDot_1io44_200 {
1814
+ ._swatchDot_1a177_202 {
1813
1815
  display: block;
1814
1816
  width: 14px;
1815
1817
  height: 14px;
1816
1818
  border-radius: var(--radius-2);
1817
1819
  }
1818
- ._large_1io44_211 {
1820
+ ._large_1a177_213 {
1819
1821
  padding: 0 var(--space-16);
1820
1822
  }
1821
- ._large_1io44_211 ._media_1io44_15 {
1823
+ ._large_1a177_213 ._media_1a177_15 {
1822
1824
  aspect-ratio: 343 / 457;
1823
1825
  }
1824
- ._large_1io44_211 ._title_1io44_5 {
1826
+ ._large_1a177_213 ._title_1a177_5 {
1825
1827
  font-size: 18px;
1826
1828
  line-height: 23px;
1827
1829
  min-height: 0;
1828
1830
  }
1829
- ._tile_1io44_7:not(._large_1io44_211) ._swatches_1io44_179 {
1831
+ ._tile_1a177_7:not(._large_1a177_213) ._swatches_1a177_181 {
1830
1832
  display: none;
1831
1833
  }
1832
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;
@@ -1706,14 +1708,14 @@
1706
1708
  height: 24px;
1707
1709
  color: var(--color-text-default);
1708
1710
  }
1709
- ._tile_1io44_7 {
1711
+ ._tile_1a177_7 {
1710
1712
  display: flex;
1711
1713
  flex-direction: column;
1712
1714
  gap: var(--space-12);
1713
1715
  text-decoration: none;
1714
1716
  color: inherit;
1715
1717
  }
1716
- ._media_1io44_15 {
1718
+ ._media_1a177_15 {
1717
1719
  position: relative;
1718
1720
  width: 100%;
1719
1721
  aspect-ratio: 165 / 220;
@@ -1721,15 +1723,15 @@
1721
1723
  overflow: hidden;
1722
1724
  background: var(--color-surface-soft);
1723
1725
  }
1724
- ._image_1io44_25 {
1726
+ ._image_1a177_25 {
1725
1727
  object-fit: cover;
1726
1728
  }
1727
- ._placeholder_1io44_29 {
1729
+ ._placeholder_1a177_29 {
1728
1730
  width: 100%;
1729
1731
  height: 100%;
1730
1732
  background: var(--color-surface-soft);
1731
1733
  }
1732
- ._topBadge_1io44_37 {
1734
+ ._topBadge_1a177_37 {
1733
1735
  position: absolute;
1734
1736
  top: var(--space-8);
1735
1737
  left: var(--space-8);
@@ -1750,13 +1752,13 @@
1750
1752
  text-transform: uppercase;
1751
1753
  white-space: nowrap;
1752
1754
  }
1753
- ._saleBadge_1io44_78 {
1755
+ ._saleBadge_1a177_78 {
1754
1756
  position: absolute;
1755
1757
  display: flex;
1756
1758
  bottom: var(--space-8);
1757
1759
  left: var(--space-8);
1758
1760
  }
1759
- ._oos_1io44_86 {
1761
+ ._oos_1a177_86 {
1760
1762
  position: absolute;
1761
1763
  inset: 0;
1762
1764
  display: flex;
@@ -1768,17 +1770,17 @@
1768
1770
  font-size: var(--type-trimmed-sm-size);
1769
1771
  font-weight: var(--font-weight-bold);
1770
1772
  }
1771
- ._bottom_1io44_113 {
1773
+ ._bottom_1a177_113 {
1772
1774
  display: flex;
1773
1775
  flex-direction: column;
1774
1776
  gap: var(--space-16);
1775
1777
  }
1776
- ._titlePrice_1io44_100 {
1778
+ ._titlePrice_1a177_100 {
1777
1779
  display: flex;
1778
1780
  flex-direction: column;
1779
1781
  gap: var(--space-16);
1780
1782
  }
1781
- ._title_1io44_5 {
1783
+ ._title_1a177_5 {
1782
1784
  font-size: var(--type-paragraph-size);
1783
1785
  line-height: 21px;
1784
1786
  padding: 5px 0;
@@ -1792,41 +1794,41 @@
1792
1794
  overflow: hidden;
1793
1795
  min-height: calc(2 * 21px + 10px);
1794
1796
  }
1795
- ._titlePrice_1io44_100 > :last-child {
1797
+ ._titlePrice_1a177_100 > :last-child {
1796
1798
  line-height: 11px;
1797
1799
  }
1798
- ._swatches_1io44_179 {
1800
+ ._swatches_1a177_181 {
1799
1801
  display: flex;
1800
1802
  gap: var(--space-4);
1801
1803
  align-items: center;
1802
1804
  }
1803
- ._swatch_1io44_179 {
1805
+ ._swatch_1a177_181 {
1804
1806
  display: inline-flex;
1805
1807
  padding: 2px;
1806
- 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);
1807
1809
  border-radius: var(--radius-2);
1808
1810
  }
1809
- ._swatchActive_1io44_196 {
1810
- box-shadow: inset 0 0 0 0.5px var(--color-surface-max);
1811
+ ._swatchActive_1a177_198 {
1812
+ box-shadow: inset 0 0 0 0.5px var(--color-border-full-color-max);
1811
1813
  }
1812
- ._swatchDot_1io44_200 {
1814
+ ._swatchDot_1a177_202 {
1813
1815
  display: block;
1814
1816
  width: 14px;
1815
1817
  height: 14px;
1816
1818
  border-radius: var(--radius-2);
1817
1819
  }
1818
- ._large_1io44_211 {
1820
+ ._large_1a177_213 {
1819
1821
  padding: 0 var(--space-16);
1820
1822
  }
1821
- ._large_1io44_211 ._media_1io44_15 {
1823
+ ._large_1a177_213 ._media_1a177_15 {
1822
1824
  aspect-ratio: 343 / 457;
1823
1825
  }
1824
- ._large_1io44_211 ._title_1io44_5 {
1826
+ ._large_1a177_213 ._title_1a177_5 {
1825
1827
  font-size: 18px;
1826
1828
  line-height: 23px;
1827
1829
  min-height: 0;
1828
1830
  }
1829
- ._tile_1io44_7:not(._large_1io44_211) ._swatches_1io44_179 {
1831
+ ._tile_1a177_7:not(._large_1a177_213) ._swatches_1a177_181 {
1830
1832
  display: none;
1831
1833
  }
1832
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.8",
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
- "scripts": {
27
- "build": "pnpm build:package && pnpm build:standalone",
28
- "build:package": "vite build",
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
  }