@shopgate/pwa-ui-material 7.32.0-beta.1 → 7.32.0-beta.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/AppBar/index.js CHANGED
@@ -12,11 +12,11 @@ import Center from "./components/Center";
12
12
  import Left from "./components/Left";
13
13
  import Below from "./components/Below";
14
14
  import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
15
- const useStyles = makeStyles()({
15
+ const useStyles = makeStyles()(theme => ({
16
16
  outer: {
17
17
  boxSizing: 'content-box',
18
18
  left: 0,
19
- paddingTop: 'var(--safe-area-inset-top)',
19
+ paddingTop: theme.layout.safeArea.top,
20
20
  position: 'sticky',
21
21
  top: 0,
22
22
  width: '100%',
@@ -30,7 +30,7 @@ const useStyles = makeStyles()({
30
30
  position: 'relative',
31
31
  zIndex: 14
32
32
  }
33
- });
33
+ }));
34
34
 
35
35
  /**
36
36
  * Updates the --app-bar-height custom property
@@ -1,12 +1,11 @@
1
1
  import React, { memo } from 'react';
2
2
  import PropTypes from 'prop-types';
3
3
  import { I18n, Ellipsis, Typography } from '@shopgate/engage/components';
4
- import { themeConfig } from '@shopgate/engage';
5
4
  import { makeStyles } from '@shopgate/engage/styles';
6
5
  import { jsx as _jsx } from "react/jsx-runtime";
7
6
  const useStyles = makeStyles()(theme => ({
8
7
  title: {
9
- lineHeight: themeConfig.typography.lineHeight,
8
+ lineHeight: theme.typography.body2.lineHeight,
10
9
  paddingBottom: theme.spacing(1),
11
10
  marginTop: '-.25em'
12
11
  }
@@ -17,7 +17,7 @@ const useStyles = makeStyles()(theme => ({
17
17
  width: '1px',
18
18
  zIndex: -1000,
19
19
  '&:first-of-type': {
20
- marginTop: 'calc(16px + var(--safe-area-inset-top))'
20
+ marginTop: `calc(16px + ${theme.layout.safeArea.top})`
21
21
  }
22
22
  },
23
23
  button: {
@@ -30,7 +30,7 @@ const useStyles = makeStyles()(theme => ({
30
30
  position: 'relative',
31
31
  width: '100%',
32
32
  '&:first-of-type': {
33
- paddingTop: 'calc(16px + var(--safe-area-inset-top))'
33
+ paddingTop: `calc(16px + ${theme.layout.safeArea.top})`
34
34
  }
35
35
  },
36
36
  label: {
@@ -19,7 +19,7 @@ const useStyles = makeStyles()(theme => ({
19
19
  fontSize: theme.typography.body2.fontSize,
20
20
  height: '100%',
21
21
  overflowY: 'scroll',
22
- paddingBottom: 'var(--safe-area-inset-bottom)',
22
+ paddingBottom: theme.layout.safeArea.bottom,
23
23
  WebkitOverflowScrolling: 'touch'
24
24
  },
25
25
  drawer: {
package/SnackBar/index.js CHANGED
@@ -11,7 +11,7 @@ const useStyles = makeStyles()(theme => ({
11
11
  container: {
12
12
  position: 'fixed',
13
13
  height: 'var(--snack-bar-height, 80px)',
14
- bottom: 'max(var(--footer-height), var(--safe-area-inset-bottom))',
14
+ bottom: `max(var(--footer-height), ${theme.layout.safeArea.bottom})`,
15
15
  transition: 'bottom 0.3s ease',
16
16
  overflow: 'hidden',
17
17
  zIndex: 6,
@@ -1,7 +1,8 @@
1
+ import React from 'react';
1
2
  import type { IconProps } from '@shopgate/pwa-common/components/Icon';
2
3
  /**
3
4
  * The Share icon component.
4
5
  */
5
- declare const ShareIcon: (props: Omit<IconProps, "content">) => import("react/jsx-runtime").JSX.Element;
6
+ declare const ShareIcon: (props: Omit<IconProps, "content">) => React.JSX.Element;
6
7
  export default ShareIcon;
7
8
  //# sourceMappingURL=ShareIcon.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"ShareIcon.d.ts","sourceRoot":"","sources":["../../icons/ShareIcon.tsx"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,sCAAsC,CAAC;AAItE;;GAEG;AACH,QAAA,MAAM,SAAS,GAAI,OAAO,IAAI,CAAC,SAAS,EAAE,SAAS,CAAC,4CACI,CAAC;AAEzD,eAAe,SAAS,CAAC"}
1
+ {"version":3,"file":"ShareIcon.d.ts","sourceRoot":"","sources":["../../icons/ShareIcon.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAC;AAC1B,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,sCAAsC,CAAC;AAItE;;GAEG;AACH,QAAA,MAAM,SAAS,GAAI,OAAO,IAAI,CAAC,SAAS,EAAE,SAAS,CAAC,sBACI,CAAC;AAEzD,eAAe,SAAS,CAAC"}
package/package.json CHANGED
@@ -1,11 +1,11 @@
1
1
  {
2
2
  "name": "@shopgate/pwa-ui-material",
3
- "version": "7.32.0-beta.1",
3
+ "version": "7.32.0-beta.2",
4
4
  "description": "Shopgate's material design UI components.",
5
5
  "main": "index.js",
6
6
  "license": "Apache-2.0",
7
7
  "devDependencies": {
8
- "@shopgate/pwa-common": "7.32.0-beta.1",
8
+ "@shopgate/pwa-common": "7.32.0-beta.2",
9
9
  "@types/color": "^4.2.0",
10
10
  "@types/react-transition-group": "^4.4.12",
11
11
  "react": "^17.0.2",
@@ -19,7 +19,7 @@
19
19
  "prop-types": "~15.8.1",
20
20
  "react-spring": "^8.0.27",
21
21
  "react-transition-group": "^4.4.5",
22
- "react-use": "^17.6.0"
22
+ "react-use": "^17.6.1"
23
23
  },
24
24
  "peerDependencies": {
25
25
  "react": "^16.0.0 || ^17.0.0"