@shopgate/pwa-ui-material 7.32.0-beta.15 → 7.32.0-beta.17
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/SnackBar/index.js +6 -7
- package/package.json +2 -2
package/SnackBar/index.js
CHANGED
|
@@ -5,6 +5,7 @@ import { Spring } from 'react-spring/renderprops.cjs';
|
|
|
5
5
|
import Ellipsis from '@shopgate/pwa-common/components/Ellipsis';
|
|
6
6
|
import { i18n } from '@shopgate/engage/core/helpers';
|
|
7
7
|
import { useLongPress } from '@shopgate/engage/core/hooks/events';
|
|
8
|
+
import { Button } from '@shopgate/engage/components/v2';
|
|
8
9
|
import { makeStyles } from '@shopgate/engage/styles';
|
|
9
10
|
import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
|
|
10
11
|
const defaultToast = {};
|
|
@@ -55,12 +56,8 @@ const useStyles = makeStyles()(theme => ({
|
|
|
55
56
|
overflow: 'hidden'
|
|
56
57
|
},
|
|
57
58
|
actionButton: {
|
|
58
|
-
color: theme.palette.secondary.main,
|
|
59
|
-
fontWeight: theme.typography.fontWeightMedium,
|
|
60
|
-
height: 36,
|
|
61
|
-
letterSpacing: 'inherit',
|
|
62
59
|
margin: '0 -8px 0 8px',
|
|
63
|
-
|
|
60
|
+
minWidth: 0,
|
|
64
61
|
padding: '0 8px',
|
|
65
62
|
textTransform: 'uppercase'
|
|
66
63
|
}
|
|
@@ -236,10 +233,12 @@ const SnackBar = ({
|
|
|
236
233
|
role: "status",
|
|
237
234
|
children: message
|
|
238
235
|
})
|
|
239
|
-
}), action && actionLabel && /*#__PURE__*/_jsx(
|
|
236
|
+
}), action && actionLabel && /*#__PURE__*/_jsx(Button, {
|
|
240
237
|
className: classes.actionButton,
|
|
238
|
+
variant: "text",
|
|
239
|
+
size: "small",
|
|
240
|
+
color: "secondary",
|
|
241
241
|
onClick: handleAction,
|
|
242
|
-
type: "button",
|
|
243
242
|
"aria-hidden": true,
|
|
244
243
|
children: actionLabel
|
|
245
244
|
})]
|
package/package.json
CHANGED
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@shopgate/pwa-ui-material",
|
|
3
|
-
"version": "7.32.0-beta.
|
|
3
|
+
"version": "7.32.0-beta.17",
|
|
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.
|
|
8
|
+
"@shopgate/pwa-common": "7.32.0-beta.17",
|
|
9
9
|
"@types/color": "^4.2.0",
|
|
10
10
|
"@types/react-transition-group": "^4.4.12",
|
|
11
11
|
"react": "^17.0.2",
|