@graphcommerce/magento-search 3.4.19 → 3.5.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/CHANGELOG.md +22 -0
- package/SearchButton/index.tsx +8 -3
- package/package.json +8 -8
package/CHANGELOG.md
CHANGED
|
@@ -3,6 +3,28 @@
|
|
|
3
3
|
All notable changes to this project will be documented in this file.
|
|
4
4
|
See [Conventional Commits](https://conventionalcommits.org) for commit guidelines.
|
|
5
5
|
|
|
6
|
+
# [3.5.0](https://github.com/ho-nl/m2-pwa/compare/@graphcommerce/magento-search@3.4.20...@graphcommerce/magento-search@3.5.0) (2021-11-12)
|
|
7
|
+
|
|
8
|
+
|
|
9
|
+
### Features
|
|
10
|
+
|
|
11
|
+
* added tons of translations ([9bb0ac7](https://github.com/ho-nl/m2-pwa/commit/9bb0ac709b58df6ea6141e92e4923a5ca9ae2963))
|
|
12
|
+
|
|
13
|
+
|
|
14
|
+
|
|
15
|
+
|
|
16
|
+
|
|
17
|
+
## [3.4.20](https://github.com/ho-nl/m2-pwa/compare/@graphcommerce/magento-search@3.4.19...@graphcommerce/magento-search@3.4.20) (2021-11-12)
|
|
18
|
+
|
|
19
|
+
|
|
20
|
+
### Bug Fixes
|
|
21
|
+
|
|
22
|
+
* searchButton styling ([846e0cd](https://github.com/ho-nl/m2-pwa/commit/846e0cdb76eec7c5baf5fbfc4c501f99ebe59bf5))
|
|
23
|
+
|
|
24
|
+
|
|
25
|
+
|
|
26
|
+
|
|
27
|
+
|
|
6
28
|
## [3.4.19](https://github.com/ho-nl/m2-pwa/compare/@graphcommerce/magento-search@3.4.18...@graphcommerce/magento-search@3.4.19) (2021-11-12)
|
|
7
29
|
|
|
8
30
|
|
package/SearchButton/index.tsx
CHANGED
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
import { iconSearch, responsiveVal, SvgImageSimple, UseStyles } from '@graphcommerce/next-ui'
|
|
2
2
|
import { makeStyles, TextField, TextFieldProps, Theme } from '@material-ui/core'
|
|
3
3
|
import React from 'react'
|
|
4
|
+
import clsx from 'clsx'
|
|
4
5
|
|
|
5
6
|
const useStyles = makeStyles(
|
|
6
7
|
(theme: Theme) => ({
|
|
@@ -10,7 +11,7 @@ const useStyles = makeStyles(
|
|
|
10
11
|
'& fieldset': {
|
|
11
12
|
border: `1px solid ${theme.palette.divider}`,
|
|
12
13
|
},
|
|
13
|
-
[theme.breakpoints.
|
|
14
|
+
[theme.breakpoints.down('sm')]: {
|
|
14
15
|
width: '100%',
|
|
15
16
|
marginRight: 0,
|
|
16
17
|
},
|
|
@@ -18,6 +19,10 @@ const useStyles = makeStyles(
|
|
|
18
19
|
inputRoot: {
|
|
19
20
|
...theme.typography.body2,
|
|
20
21
|
},
|
|
22
|
+
fullWidth: {
|
|
23
|
+
width: '100%',
|
|
24
|
+
marginRight: 0,
|
|
25
|
+
},
|
|
21
26
|
}),
|
|
22
27
|
{ name: 'SearchButton' },
|
|
23
28
|
)
|
|
@@ -25,14 +30,14 @@ const useStyles = makeStyles(
|
|
|
25
30
|
export type SearchButtonProps = UseStyles<typeof useStyles> & TextFieldProps
|
|
26
31
|
|
|
27
32
|
export default function SearchButton(props: SearchButtonProps) {
|
|
28
|
-
const { InputProps, label = 'Search...', ...textFieldProps } = props
|
|
33
|
+
const { InputProps, label = 'Search...', fullWidth = false, ...textFieldProps } = props
|
|
29
34
|
const classes = useStyles(props)
|
|
30
35
|
|
|
31
36
|
return (
|
|
32
37
|
<TextField
|
|
33
38
|
variant='outlined'
|
|
34
39
|
size='small'
|
|
35
|
-
|
|
40
|
+
className={clsx(classes.root, fullWidth && classes.fullWidth)}
|
|
36
41
|
label={label}
|
|
37
42
|
id='search-input'
|
|
38
43
|
InputLabelProps={{ shrink: false }}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@graphcommerce/magento-search",
|
|
3
|
-
"version": "3.
|
|
3
|
+
"version": "3.5.2",
|
|
4
4
|
"sideEffects": false,
|
|
5
5
|
"prettier": "@graphcommerce/prettier-config-pwa",
|
|
6
6
|
"browserslist": [
|
|
@@ -14,21 +14,21 @@
|
|
|
14
14
|
},
|
|
15
15
|
"devDependencies": {
|
|
16
16
|
"@graphcommerce/browserslist-config-pwa": "^3.0.2",
|
|
17
|
-
"@graphcommerce/eslint-config-pwa": "^3.1.
|
|
17
|
+
"@graphcommerce/eslint-config-pwa": "^3.1.5",
|
|
18
18
|
"@graphcommerce/prettier-config-pwa": "^3.0.4",
|
|
19
19
|
"@graphcommerce/typescript-config-pwa": "^3.1.1",
|
|
20
20
|
"@playwright/test": "^1.16.2"
|
|
21
21
|
},
|
|
22
22
|
"dependencies": {
|
|
23
|
-
"@graphcommerce/graphql": "^2.105.
|
|
24
|
-
"@graphcommerce/image": "^2.105.
|
|
25
|
-
"@graphcommerce/next-ui": "^3.
|
|
26
|
-
"@graphcommerce/react-hook-form": "^2.
|
|
27
|
-
"@
|
|
23
|
+
"@graphcommerce/graphql": "^2.105.5",
|
|
24
|
+
"@graphcommerce/image": "^2.105.4",
|
|
25
|
+
"@graphcommerce/next-ui": "^3.18.0",
|
|
26
|
+
"@graphcommerce/react-hook-form": "^2.104.0",
|
|
27
|
+
"@lingui/macro": "^3.12.1",
|
|
28
28
|
"@material-ui/core": "^4.12.3",
|
|
29
29
|
"next": "^12.0.3",
|
|
30
30
|
"react": "^17.0.2",
|
|
31
31
|
"react-dom": "^17.0.2"
|
|
32
32
|
},
|
|
33
|
-
"gitHead": "
|
|
33
|
+
"gitHead": "033692947ca401d23791b3fcb9d65dc8c4e32bbc"
|
|
34
34
|
}
|