@shopgate/pwa-ui-shared 7.32.0-beta.18 → 7.32.0-beta.19

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.
@@ -8,10 +8,10 @@ const useStyles = makeStyles()(theme => ({
8
8
  fill: 'currentColor'
9
9
  },
10
10
  background: {
11
- fill: theme.palette.secondary.main
12
- },
13
- cloud: {
14
- fill: theme.palette.primary.main
11
+ fill: theme.palette.common.white,
12
+ ...theme.applyStyles('dark', {
13
+ fill: theme.palette.grey[200]
14
+ })
15
15
  },
16
16
  circle: {
17
17
  fill: 'currentColor',
@@ -106,7 +106,7 @@ const NoResultIcon = props => {
106
106
  children: /*#__PURE__*/_jsx("g", {
107
107
  transform: "matrix(1, 0, 0, 1, 2686.4, -7054.12)",
108
108
  children: /*#__PURE__*/_jsx("path", {
109
- className: classes.cloud,
109
+ className: classes.background,
110
110
  d: "M90.216,116.652a24.732,24.732,0,0,1-20.61-10.992,13.394,13.394,0,0,1-7.263-1.374,20,20,0,0,1-7.655,1.767,20.473,20.473,0,0,1-18.255-10.6,20.009,20.009,0,0,1-6.478.981A23.584,23.584,0,0,1,6.4,73.076c0-10.6,6.085-19.236,15.507-22.181V50.11A13.07,13.07,0,0,1,34.862,37.155a13.905,13.905,0,0,1,2.748.2A18.6,18.6,0,0,1,52.724,29.7,19.248,19.248,0,0,1,65.876,35,14.4,14.4,0,0,1,75.1,31.659a13.191,13.191,0,0,1,6.281,1.963,24.851,24.851,0,0,1,40.239,1.767,21.962,21.962,0,0,1,20.61,5.3c.393-.2.589-.393.981-.589a16.9,16.9,0,0,1,7.459-1.963,15.491,15.491,0,0,1,15.311,13.937A22.951,22.951,0,0,1,181.49,64.439c2.944,6.478,2.355,13.544-1.57,20.218a21.266,21.266,0,0,1-18.059,10.011h-.2c-4.122,0-7.459-.785-10.207-2.552a13.109,13.109,0,0,1-7.263.393,24.871,24.871,0,0,1-15.311,15.114,24.1,24.1,0,0,1-18.451-.981A25.762,25.762,0,0,1,90.216,116.652Z",
111
111
  transform: "translate(-2686.4 7054.12)"
112
112
  })
@@ -25,7 +25,7 @@ const useStyles = makeStyles()(theme => ({
25
25
  },
26
26
  icon: {
27
27
  width: 216,
28
- color: theme.contrastColor(theme.palette.secondary.main)
28
+ color: theme.palette.primary.main
29
29
  },
30
30
  headline: {
31
31
  marginTop: 30
package/Price/index.js CHANGED
@@ -12,10 +12,11 @@ const useStyles = makeStyles()(theme => ({
12
12
  display: 'flex',
13
13
  position: 'relative',
14
14
  whiteSpace: 'nowrap',
15
- color: theme.components.price.default,
16
- fontFamily: theme.components.price.fontFamily,
17
- fontWeight: theme.components.price.fontWeight,
18
- fontSize: theme.components.price.fontSize
15
+ color: theme.components.price.defaultColor,
16
+ '--font-size': theme.typography.price.fontSize,
17
+ '--font-family': theme.typography.price.fontFamily,
18
+ fontSize: 'var(--font-size)',
19
+ fontFamily: 'var(--font-family)'
19
20
  },
20
21
  disclaimer: {
21
22
  color: 'initial',
@@ -24,7 +25,7 @@ const useStyles = makeStyles()(theme => ({
24
25
  top: 0
25
26
  },
26
27
  discounted: {
27
- color: theme.components.price.sale
28
+ color: theme.components.price.saleColor
28
29
  }
29
30
  }));
30
31
 
@@ -24,11 +24,12 @@ const calcAngle = element => {
24
24
  };
25
25
  const useStyles = makeStyles()(theme => ({
26
26
  root: {
27
+ '--font-size': `calc(${theme.typography.price.fontSize} * 0.75)`,
28
+ '--font-family': theme.typography.price.fontFamily,
29
+ fontSize: 'var(--font-size)',
30
+ fontFamily: 'var(--font-family)',
27
31
  whiteSpace: 'nowrap',
28
- color: theme.components.price.striked,
29
- fontFamily: theme.components.price.fontFamily,
30
- fontWeight: theme.components.price.fontWeight,
31
- fontSize: `calc(${theme.components.price.fontSize} * 0.75)`,
32
+ color: theme.components.price.strikedColor,
32
33
  '& span': {
33
34
  position: 'relative',
34
35
  '&::before': {
package/package.json CHANGED
@@ -1,16 +1,16 @@
1
1
  {
2
2
  "name": "@shopgate/pwa-ui-shared",
3
- "version": "7.32.0-beta.18",
3
+ "version": "7.32.0-beta.19",
4
4
  "description": "Shopgate's shared UI components.",
5
5
  "main": "index.js",
6
6
  "license": "Apache-2.0",
7
7
  "dependencies": {
8
- "@shopgate/pwa-ui-ios": "7.32.0-beta.18",
9
- "@shopgate/pwa-ui-material": "7.32.0-beta.18"
8
+ "@shopgate/pwa-ui-ios": "7.32.0-beta.19",
9
+ "@shopgate/pwa-ui-material": "7.32.0-beta.19"
10
10
  },
11
11
  "devDependencies": {
12
- "@shopgate/pwa-common": "7.32.0-beta.18",
13
- "@shopgate/pwa-common-commerce": "7.32.0-beta.18",
12
+ "@shopgate/pwa-common": "7.32.0-beta.19",
13
+ "@shopgate/pwa-common-commerce": "7.32.0-beta.19",
14
14
  "classnames": "2.5.1",
15
15
  "react": "^17.0.2"
16
16
  },