@graphcommerce/magento-search 3.0.18 → 3.1.3

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,19 @@
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.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
+
8
+
9
+ ### Features
10
+
11
+ * allow adding placeholder to SearchButton ([95f601a](https://github.com/ho-nl/m2-pwa/commit/95f601ac526991130ba319142452950793661f7b))
12
+ * allow changing SearchButton icon ([9725ab1](https://github.com/ho-nl/m2-pwa/commit/9725ab14920f585c83457f11908d7e5e408cadb8))
13
+ * implement extensibility for DesktopNavBar, SearchButton ([5710de8](https://github.com/ho-nl/m2-pwa/commit/5710de8936f59c7d0fcc648978183f0e7fdd26b7))
14
+
15
+
16
+
17
+
18
+
6
19
  ## [3.0.1](https://github.com/ho-nl/m2-pwa/compare/@graphcommerce/magento-search@3.0.0...@graphcommerce/magento-search@3.0.1) (2021-09-27)
7
20
 
8
21
  **Note:** Version bump only for package @graphcommerce/magento-search
@@ -1,5 +1,5 @@
1
- import { UseStyles, SvgImage, iconSearch } from '@graphcommerce/next-ui'
2
- import { makeStyles, TextField, Theme } from '@material-ui/core'
1
+ import { UseStyles, SvgImage, iconSearch, SvgImageSimple } from '@graphcommerce/next-ui'
2
+ import { makeStyles, TextField, TextFieldProps, Theme } from '@material-ui/core'
3
3
  import React from 'react'
4
4
 
5
5
  const useStyles = makeStyles(
@@ -17,10 +17,10 @@ const useStyles = makeStyles(
17
17
  { name: 'SearchButton' },
18
18
  )
19
19
 
20
- export type SearchButtonProps = UseStyles<typeof useStyles> & { onClick: () => void }
20
+ export type SearchButtonProps = UseStyles<typeof useStyles> & TextFieldProps
21
21
 
22
22
  export default function SearchButton(props: SearchButtonProps) {
23
- const { onClick } = props
23
+ const { InputProps, ...textFieldProps } = props
24
24
  const classes = useStyles(props)
25
25
 
26
26
  return (
@@ -30,11 +30,11 @@ export default function SearchButton(props: SearchButtonProps) {
30
30
  classes={{ root: classes.root }}
31
31
  InputProps={{
32
32
  readOnly: true,
33
- endAdornment: <SvgImage src={iconSearch} alt='Search' size='small' />,
33
+ endAdornment: <SvgImageSimple src={iconSearch} alt='Search' size='small' />,
34
34
  classes: { root: classes.inputRoot },
35
+ ...InputProps,
35
36
  }}
36
- placeholder=''
37
- onClick={onClick}
37
+ {...textFieldProps}
38
38
  />
39
39
  )
40
40
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@graphcommerce/magento-search",
3
- "version": "3.0.18",
3
+ "version": "3.1.3",
4
4
  "sideEffects": false,
5
5
  "prettier": "@graphcommerce/prettier-config-pwa",
6
6
  "browserslist": [
@@ -13,22 +13,22 @@
13
13
  }
14
14
  },
15
15
  "devDependencies": {
16
- "@graphcommerce/browserslist-config-pwa": "^3.0.1",
17
- "@graphcommerce/eslint-config-pwa": "^3.0.5",
18
- "@graphcommerce/prettier-config-pwa": "^3.0.2",
19
- "@graphcommerce/typescript-config-pwa": "^3.1.0",
20
- "@playwright/test": "^1.15.0"
16
+ "@graphcommerce/browserslist-config-pwa": "^3.0.2",
17
+ "@graphcommerce/eslint-config-pwa": "^3.0.7",
18
+ "@graphcommerce/prettier-config-pwa": "^3.0.3",
19
+ "@graphcommerce/typescript-config-pwa": "^3.1.1",
20
+ "@playwright/test": "^1.15.2"
21
21
  },
22
22
  "dependencies": {
23
- "@graphcommerce/graphql": "^2.103.5",
24
- "@graphcommerce/image": "^2.104.8",
25
- "@graphcommerce/next-ui": "^3.2.3",
26
- "@graphcommerce/react-hook-form": "^2.102.6",
23
+ "@graphcommerce/graphql": "^2.103.7",
24
+ "@graphcommerce/image": "^2.104.10",
25
+ "@graphcommerce/next-ui": "^3.3.3",
26
+ "@graphcommerce/react-hook-form": "^2.102.8",
27
27
  "@graphql-typed-document-node/core": "^3.1.0",
28
28
  "@material-ui/core": "^4.12.3",
29
29
  "next": "^11.1.2",
30
30
  "react": "^17.0.2",
31
31
  "react-dom": "^17.0.2"
32
32
  },
33
- "gitHead": "23efb6abb9e5bb287434d07dbba664511b2c5e36"
33
+ "gitHead": "996d782db6b91323acf71868a7790d608367d918"
34
34
  }