@shopgate/pwa-ui-ios 7.32.0-beta.6 → 7.32.0-beta.8
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
|
@@ -1,33 +1,44 @@
|
|
|
1
1
|
import React, { memo } from 'react';
|
|
2
2
|
import PropTypes from 'prop-types';
|
|
3
|
-
import { I18n
|
|
3
|
+
import { I18n } from '@shopgate/engage/components';
|
|
4
|
+
import { Button } from '@shopgate/engage/components/v2';
|
|
4
5
|
import { makeStyles } from '@shopgate/engage/styles';
|
|
5
6
|
import { jsx as _jsx } from "react/jsx-runtime";
|
|
6
7
|
const borderColor = 'rgba(0,0,0,0.2)';
|
|
8
|
+
const pressedColor = 'rgba(0,0,0,0.08)';
|
|
9
|
+
const hoverColor = 'rgba(0,0,0,0.04)';
|
|
7
10
|
const useStyles = makeStyles()(theme => ({
|
|
8
11
|
button: {
|
|
9
|
-
'
|
|
12
|
+
'& > *': {
|
|
10
13
|
color: 'var(--color-button-dialog-ios, #1a73e8)'
|
|
11
14
|
},
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
},
|
|
15
|
+
fontWeight: theme.typography.fontWeightRegular,
|
|
16
|
+
minWidth: '50%',
|
|
17
|
+
flexGrow: 1,
|
|
18
|
+
lineHeight: 1.2,
|
|
19
|
+
paddingTop: 11,
|
|
20
|
+
paddingBottom: 11,
|
|
19
21
|
marginBottom: -1,
|
|
20
22
|
marginRight: theme.spacing(-0.5),
|
|
23
|
+
'&:active': {
|
|
24
|
+
background: pressedColor
|
|
25
|
+
},
|
|
26
|
+
'&:focus-visible': {
|
|
27
|
+
background: pressedColor
|
|
28
|
+
},
|
|
29
|
+
'@media (hover: hover)': {
|
|
30
|
+
'&:hover': {
|
|
31
|
+
background: hoverColor
|
|
32
|
+
}
|
|
33
|
+
},
|
|
21
34
|
'&:not(:last-child)': {
|
|
22
|
-
borderRadius:
|
|
35
|
+
borderRadius: 0,
|
|
23
36
|
borderRight: `0.5px solid ${borderColor}`,
|
|
24
37
|
borderBottom: `0.5px solid ${borderColor}`
|
|
25
38
|
}
|
|
26
39
|
},
|
|
27
40
|
buttonPrimary: {
|
|
28
|
-
|
|
29
|
-
fontWeight: theme.typography.fontWeightRegular
|
|
30
|
-
}
|
|
41
|
+
fontWeight: theme.typography.fontWeightRegular
|
|
31
42
|
},
|
|
32
43
|
buttonText: {
|
|
33
44
|
overflow: 'hidden',
|
|
@@ -54,10 +65,11 @@ const Buttons = ({
|
|
|
54
65
|
disabled = false
|
|
55
66
|
}) => /*#__PURE__*/_jsx(Button, {
|
|
56
67
|
className: cx(classes.button, type === 'primary' && classes.buttonPrimary),
|
|
57
|
-
|
|
68
|
+
variant: "link",
|
|
69
|
+
color: "secondary",
|
|
58
70
|
onClick: action,
|
|
59
71
|
disabled: disabled,
|
|
60
|
-
|
|
72
|
+
disableRipple: true,
|
|
61
73
|
children: /*#__PURE__*/_jsx(I18n.Text, {
|
|
62
74
|
className: classes.buttonText,
|
|
63
75
|
string: label
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
2
|
import { shallow } from 'enzyme';
|
|
3
|
-
import Button from '@shopgate/
|
|
3
|
+
import { Button } from '@shopgate/engage/components/v2';
|
|
4
4
|
import Buttons from "./index";
|
|
5
5
|
import { jsx as _jsx } from "react/jsx-runtime";
|
|
6
6
|
const actions = [{
|
package/package.json
CHANGED
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@shopgate/pwa-ui-ios",
|
|
3
|
-
"version": "7.32.0-beta.
|
|
3
|
+
"version": "7.32.0-beta.8",
|
|
4
4
|
"description": "Shopgate's iOS UI components.",
|
|
5
5
|
"main": "index.js",
|
|
6
6
|
"license": "Apache-2.0",
|
|
7
7
|
"devDependencies": {
|
|
8
|
-
"@shopgate/pwa-common": "7.32.0-beta.
|
|
8
|
+
"@shopgate/pwa-common": "7.32.0-beta.8",
|
|
9
9
|
"react": "^17.0.2"
|
|
10
10
|
},
|
|
11
11
|
"peerDependencies": {
|