@graphcommerce/magento-search 3.1.12 → 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 CHANGED
@@ -3,6 +3,34 @@
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
+
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)
24
+
25
+
26
+ ### Features
27
+
28
+ * **nextjs:** upgraded to nextjs 12 ([9331bc8](https://github.com/ho-nl/m2-pwa/commit/9331bc801f6419522115cc47d291d49d608d5a90))
29
+
30
+
31
+
32
+
33
+
6
34
  # [3.1.0](https://github.com/ho-nl/m2-pwa/compare/@graphcommerce/magento-search@3.0.18...@graphcommerce/magento-search@3.1.0) (2021-10-13)
7
35
 
8
36
 
@@ -1,4 +1,11 @@
1
- import { Button, Highlight, iconChevronRight, SvgImage, UseStyles } from '@graphcommerce/next-ui'
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
- <SvgImage src={iconChevronRight} alt='chevron right' size='small' loading='eager' />
58
+ <SvgImageSimple src={iconChevronRight} alt='chevron right' size='small' loading='eager' />
52
59
  }
53
60
  >
54
61
  <div>
@@ -7,7 +7,7 @@ const useStyles = makeStyles(
7
7
  root: {
8
8
  width: '100%',
9
9
  '& fieldset': {
10
- border: `2px solid rgba(0,0,0,0.1)`,
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='small' />,
33
+ endAdornment: <SvgImageSimple src={iconSearch} alt='Search' size='medium' />,
34
34
  classes: { root: classes.inputRoot },
35
35
  ...InputProps,
36
36
  }}
@@ -1,4 +1,11 @@
1
- import { FormRow, UseStyles, SvgImage, iconClose, iconSearch } from '@graphcommerce/next-ui'
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
- <SvgImage src={iconSearch} alt='search' size='small' />
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
- <SvgImage src={iconClose} alt='close' size='small' />
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.1.12",
3
+ "version": "3.3.0",
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.1",
17
+ "@graphcommerce/eslint-config-pwa": "^3.1.2",
18
18
  "@graphcommerce/prettier-config-pwa": "^3.0.3",
19
19
  "@graphcommerce/typescript-config-pwa": "^3.1.1",
20
- "@playwright/test": "^1.15.2"
20
+ "@playwright/test": "^1.16.2"
21
21
  },
22
22
  "dependencies": {
23
- "@graphcommerce/graphql": "^2.104.1",
24
- "@graphcommerce/image": "^2.104.13",
25
- "@graphcommerce/next-ui": "^3.9.0",
26
- "@graphcommerce/react-hook-form": "^2.102.12",
23
+ "@graphcommerce/graphql": "^2.105.1",
24
+ "@graphcommerce/image": "^2.105.1",
25
+ "@graphcommerce/next-ui": "^3.11.0",
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",
29
- "next": "^11.1.2",
29
+ "next": "^12.0.1",
30
30
  "react": "^17.0.2",
31
31
  "react-dom": "^17.0.2"
32
32
  },
33
- "gitHead": "a71eb508e3ddf42e5705e23bc8016f6f08969c74"
33
+ "gitHead": "f923ddb5d98378c8737314e7296bba77b1c2dc9b"
34
34
  }