@graphcommerce/magento-search 3.2.2 → 3.3.0
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 +17 -0
- package/CategorySearchResult/index.tsx +9 -2
- package/SearchButton/index.tsx +2 -2
- package/SearchForm/index.tsx +10 -3
- package/package.json +3 -3
package/CHANGELOG.md
CHANGED
|
@@ -3,6 +3,23 @@
|
|
|
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.3.0](https://github.com/ho-nl/m2-pwa/compare/@graphcommerce/magento-search@3.2.2...@graphcommerce/magento-search@3.3.0) (2021-10-28)
|
|
7
|
+
|
|
8
|
+
|
|
9
|
+
### Bug Fixes
|
|
10
|
+
|
|
11
|
+
* update SvgImage to SvgImageSimple ([f116543](https://github.com/ho-nl/m2-pwa/commit/f116543730853fa9782abff0ccacee7032e85789))
|
|
12
|
+
|
|
13
|
+
|
|
14
|
+
### Features
|
|
15
|
+
|
|
16
|
+
* dynamic icons, update SvgImage uses to SvgImageSimple ([3d3cc0e](https://github.com/ho-nl/m2-pwa/commit/3d3cc0e0336fcde1cce6ba19705f82c1edf9bfc6))
|
|
17
|
+
* mobile menu styling ([3cc3085](https://github.com/ho-nl/m2-pwa/commit/3cc308585d4ded68d2ac8ebf97f96288424ee914))
|
|
18
|
+
|
|
19
|
+
|
|
20
|
+
|
|
21
|
+
|
|
22
|
+
|
|
6
23
|
# [3.2.0](https://github.com/ho-nl/m2-pwa/compare/@graphcommerce/magento-search@3.1.12...@graphcommerce/magento-search@3.2.0) (2021-10-27)
|
|
7
24
|
|
|
8
25
|
|
|
@@ -1,4 +1,11 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import {
|
|
2
|
+
Button,
|
|
3
|
+
Highlight,
|
|
4
|
+
iconChevronRight,
|
|
5
|
+
SvgImage,
|
|
6
|
+
SvgImageSimple,
|
|
7
|
+
UseStyles,
|
|
8
|
+
} from '@graphcommerce/next-ui'
|
|
2
9
|
import { makeStyles, Theme } from '@material-ui/core'
|
|
3
10
|
import PageLink from 'next/link'
|
|
4
11
|
import React from 'react'
|
|
@@ -48,7 +55,7 @@ export default function CategorySearchResult(props: CategorySearchResultProps) {
|
|
|
48
55
|
className={classes.categoryButton}
|
|
49
56
|
disableElevation
|
|
50
57
|
endIcon={
|
|
51
|
-
<
|
|
58
|
+
<SvgImageSimple src={iconChevronRight} alt='chevron right' size='small' loading='eager' />
|
|
52
59
|
}
|
|
53
60
|
>
|
|
54
61
|
<div>
|
package/SearchButton/index.tsx
CHANGED
|
@@ -7,7 +7,7 @@ const useStyles = makeStyles(
|
|
|
7
7
|
root: {
|
|
8
8
|
width: '100%',
|
|
9
9
|
'& fieldset': {
|
|
10
|
-
border: `
|
|
10
|
+
border: `1px solid ${theme.palette.divider}`,
|
|
11
11
|
},
|
|
12
12
|
},
|
|
13
13
|
inputRoot: {
|
|
@@ -30,7 +30,7 @@ export default function SearchButton(props: SearchButtonProps) {
|
|
|
30
30
|
classes={{ root: classes.root }}
|
|
31
31
|
InputProps={{
|
|
32
32
|
readOnly: true,
|
|
33
|
-
endAdornment: <SvgImageSimple src={iconSearch} alt='Search' size='
|
|
33
|
+
endAdornment: <SvgImageSimple src={iconSearch} alt='Search' size='medium' />,
|
|
34
34
|
classes: { root: classes.inputRoot },
|
|
35
35
|
...InputProps,
|
|
36
36
|
}}
|
package/SearchForm/index.tsx
CHANGED
|
@@ -1,4 +1,11 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import {
|
|
2
|
+
FormRow,
|
|
3
|
+
UseStyles,
|
|
4
|
+
SvgImage,
|
|
5
|
+
iconClose,
|
|
6
|
+
iconSearch,
|
|
7
|
+
SvgImageSimple,
|
|
8
|
+
} from '@graphcommerce/next-ui'
|
|
2
9
|
import { useForm, useFormAutoSubmit, useFormMuiRegister } from '@graphcommerce/react-hook-form'
|
|
3
10
|
import { IconButton, makeStyles, TextField, Theme } from '@material-ui/core'
|
|
4
11
|
import { useRouter } from 'next/router'
|
|
@@ -49,7 +56,7 @@ export default function SearchForm(props: SearchFormProps) {
|
|
|
49
56
|
|
|
50
57
|
const endAdornment = !watch('search') ? (
|
|
51
58
|
<IconButton size='small'>
|
|
52
|
-
<
|
|
59
|
+
<SvgImageSimple src={iconSearch} alt='search' />
|
|
53
60
|
</IconButton>
|
|
54
61
|
) : (
|
|
55
62
|
<>
|
|
@@ -59,7 +66,7 @@ export default function SearchForm(props: SearchFormProps) {
|
|
|
59
66
|
</div>
|
|
60
67
|
)}
|
|
61
68
|
<IconButton onClick={handleReset} size='small'>
|
|
62
|
-
<
|
|
69
|
+
<SvgImageSimple src={iconClose} alt='close' />
|
|
63
70
|
</IconButton>
|
|
64
71
|
</>
|
|
65
72
|
)
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@graphcommerce/magento-search",
|
|
3
|
-
"version": "3.
|
|
3
|
+
"version": "3.3.0",
|
|
4
4
|
"sideEffects": false,
|
|
5
5
|
"prettier": "@graphcommerce/prettier-config-pwa",
|
|
6
6
|
"browserslist": [
|
|
@@ -22,7 +22,7 @@
|
|
|
22
22
|
"dependencies": {
|
|
23
23
|
"@graphcommerce/graphql": "^2.105.1",
|
|
24
24
|
"@graphcommerce/image": "^2.105.1",
|
|
25
|
-
"@graphcommerce/next-ui": "^3.
|
|
25
|
+
"@graphcommerce/next-ui": "^3.11.0",
|
|
26
26
|
"@graphcommerce/react-hook-form": "^2.102.13",
|
|
27
27
|
"@graphql-typed-document-node/core": "^3.1.0",
|
|
28
28
|
"@material-ui/core": "^4.12.3",
|
|
@@ -30,5 +30,5 @@
|
|
|
30
30
|
"react": "^17.0.2",
|
|
31
31
|
"react-dom": "^17.0.2"
|
|
32
32
|
},
|
|
33
|
-
"gitHead": "
|
|
33
|
+
"gitHead": "f923ddb5d98378c8737314e7296bba77b1c2dc9b"
|
|
34
34
|
}
|