@shopgate/pwa-ui-ios 7.34.0-beta.3 → 7.34.0-beta.5
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.
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import React, { useMemo } from 'react';
|
|
1
|
+
import React, { forwardRef, useMemo } from 'react';
|
|
2
2
|
import PropTypes from 'prop-types';
|
|
3
3
|
import { Typography } from '@shopgate/engage/components';
|
|
4
4
|
import { makeStyles } from '@shopgate/engage/styles';
|
|
@@ -17,12 +17,11 @@ const useStyles = makeStyles()({
|
|
|
17
17
|
|
|
18
18
|
/**
|
|
19
19
|
* The AppBarTitle component.
|
|
20
|
-
* @
|
|
21
|
-
* @returns {JSX.Element|null}
|
|
20
|
+
* @type {React.ForwardRefExoticComponent<{ title: string } & React.RefAttributes<HTMLElement>>}
|
|
22
21
|
*/
|
|
23
|
-
const AppBarTitle = ({
|
|
22
|
+
const AppBarTitle = /*#__PURE__*/forwardRef(({
|
|
24
23
|
title
|
|
25
|
-
}) => {
|
|
24
|
+
}, ref) => {
|
|
26
25
|
const {
|
|
27
26
|
classes,
|
|
28
27
|
cx
|
|
@@ -34,6 +33,7 @@ const AppBarTitle = ({
|
|
|
34
33
|
return null;
|
|
35
34
|
}
|
|
36
35
|
return /*#__PURE__*/_jsx(Typography, {
|
|
36
|
+
ref: ref,
|
|
37
37
|
variant: "h4",
|
|
38
38
|
component: "div",
|
|
39
39
|
noWrap: true,
|
|
@@ -47,5 +47,5 @@ const AppBarTitle = ({
|
|
|
47
47
|
"data-test-id": `title: ${text}`,
|
|
48
48
|
children: text
|
|
49
49
|
});
|
|
50
|
-
};
|
|
50
|
+
});
|
|
51
51
|
export default AppBarTitle;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@shopgate/pwa-ui-ios",
|
|
3
|
-
"version": "7.34.0-beta.
|
|
3
|
+
"version": "7.34.0-beta.5",
|
|
4
4
|
"description": "Shopgate's iOS UI components.",
|
|
5
5
|
"main": "index.js",
|
|
6
6
|
"license": "Apache-2.0",
|
|
@@ -10,7 +10,7 @@
|
|
|
10
10
|
"directory": "libraries/ui-ios"
|
|
11
11
|
},
|
|
12
12
|
"devDependencies": {
|
|
13
|
-
"@shopgate/pwa-common": "7.34.0-beta.
|
|
13
|
+
"@shopgate/pwa-common": "7.34.0-beta.5",
|
|
14
14
|
"react": "^17.0.2"
|
|
15
15
|
},
|
|
16
16
|
"peerDependencies": {
|