@graphcommerce/algolia-search 10.0.0-canary.67 → 10.0.0-canary.68

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
@@ -1,5 +1,7 @@
1
1
  # @graphcommerce/algolia-search
2
2
 
3
+ ## 10.0.0-canary.68
4
+
3
5
  ## 10.0.0-canary.67
4
6
 
5
7
  ## 10.0.0-canary.66
@@ -1,4 +1,4 @@
1
- import { ChipMenu, extendableComponent, responsiveVal } from '@graphcommerce/next-ui'
1
+ import { ChipMenu, extendableComponent, responsiveVal, sxx } from '@graphcommerce/next-ui'
2
2
  import type { SxProps, Theme } from '@mui/material'
3
3
  import Box from '@mui/material/Box'
4
4
  import Checkbox from '@mui/material/Checkbox'
@@ -68,13 +68,11 @@ export function RefinementFilterChip(props: RefinementFilterChipProps) {
68
68
  color='primary'
69
69
  disableRipple
70
70
  inputProps={{ 'aria-labelledby': `filter-equal-${attribute}-${option?.value}` }}
71
- sx={[
72
- {
73
- padding: 0,
74
- margin: '0 0 0 0',
75
- float: 'right',
76
- },
77
- ]}
71
+ sx={sxx({
72
+ padding: 0,
73
+ margin: '0 0 0 0',
74
+ float: 'right',
75
+ })}
78
76
  />
79
77
  </ListItemText>
80
78
  </ListItem>
@@ -2,6 +2,7 @@ import {
2
2
  ChipMenu,
3
3
  extendableComponent,
4
4
  responsiveVal,
5
+ sxx,
5
6
  useStorefrontConfig,
6
7
  } from '@graphcommerce/next-ui'
7
8
  import type { SxProps, Theme } from '@mui/material'
@@ -80,13 +81,11 @@ export function SortChip(props: SortChipProps) {
80
81
  color='primary'
81
82
  disableRipple
82
83
  inputProps={{ 'aria-labelledby': `sort-${option?.value}` }}
83
- sx={[
84
- {
85
- padding: 0,
86
- margin: '0 0 0 0',
87
- float: 'right',
88
- },
89
- ]}
84
+ sx={sxx({
85
+ padding: 0,
86
+ margin: '0 0 0 0',
87
+ float: 'right',
88
+ })}
90
89
  />
91
90
  </ListItemText>
92
91
  </ListItem>
@@ -1,5 +1,5 @@
1
1
  import type { ProductPaginationProps } from '@graphcommerce/magento-product'
2
- import { Pagination } from '@graphcommerce/next-ui'
2
+ import { Pagination, sxx } from '@graphcommerce/next-ui'
3
3
  import { Box } from '@mui/material'
4
4
  import { usePagination } from 'react-instantsearch-hooks-web'
5
5
 
@@ -20,7 +20,11 @@ export function AlgoliaPagination({
20
20
  count={nbPages ?? 0}
21
21
  page={currentRefinement + 1}
22
22
  renderLink={(page, icon, btnProps) => (
23
- <Box {...btnProps} color='inherit' onClick={() => handlePagination(page)}>
23
+ <Box
24
+ {...btnProps}
25
+ onClick={() => handlePagination(page)}
26
+ sx={sxx({ color: 'inherit' }, btnProps.sx)}
27
+ >
24
28
  {icon}
25
29
  </Box>
26
30
  )}
@@ -1,5 +1,6 @@
1
1
  import type { SearchFormProps } from '@graphcommerce/magento-search'
2
2
  import { algoliaSearchDebounceTime } from '@graphcommerce/next-config/config'
3
+ import { sxx } from '@graphcommerce/next-ui'
3
4
  import { Trans } from '@lingui/react/macro'
4
5
  import { Box, debounce } from '@mui/material'
5
6
  import TextField from '@mui/material/TextField'
@@ -36,7 +37,7 @@ export function SearchBox(props: SearchBoxProps) {
36
37
  <Box
37
38
  sx={(theme) => ({
38
39
  minWidth: 'max-content',
39
- color: theme.palette.text.disabled,
40
+ color: theme.vars.palette.text.disabled,
40
41
  paddingRight: '7px',
41
42
  })}
42
43
  >
@@ -51,12 +52,14 @@ export function SearchBox(props: SearchBoxProps) {
51
52
  variant='outlined'
52
53
  type='text'
53
54
  name='search'
54
- InputProps={{ endAdornment }}
55
55
  inputRef={searchInputElement}
56
56
  onChange={debounceSearch}
57
57
  fullWidth
58
- sx={[{ mt: 1, mb: 1 }, ...(Array.isArray(sx) ? sx : [sx])]}
58
+ sx={sxx({ mt: 1, mb: 1 }, sx)}
59
59
  {...textFieldProps}
60
+ slotProps={{
61
+ input: { endAdornment },
62
+ }}
60
63
  />
61
64
  )
62
65
  }
package/package.json CHANGED
@@ -2,7 +2,7 @@
2
2
  "name": "@graphcommerce/algolia-search",
3
3
  "homepage": "https://www.graphcommerce.org/",
4
4
  "repository": "github:graphcommerce-org/graphcommerce",
5
- "version": "10.0.0-canary.67",
5
+ "version": "10.0.0-canary.68",
6
6
  "sideEffects": false,
7
7
  "prettier": "@graphcommerce/prettier-config-pwa",
8
8
  "eslintConfig": {
@@ -15,21 +15,21 @@
15
15
  "algoliasearch": "^4.25.2"
16
16
  },
17
17
  "peerDependencies": {
18
- "@graphcommerce/ecommerce-ui": "^10.0.0-canary.67",
19
- "@graphcommerce/eslint-config-pwa": "^10.0.0-canary.67",
20
- "@graphcommerce/graphql": "^10.0.0-canary.67",
21
- "@graphcommerce/graphql-mesh": "^10.0.0-canary.67",
22
- "@graphcommerce/magento-product": "^10.0.0-canary.67",
23
- "@graphcommerce/magento-search": "^10.0.0-canary.67",
24
- "@graphcommerce/magento-store": "^10.0.0-canary.67",
25
- "@graphcommerce/next-config": "^10.0.0-canary.67",
26
- "@graphcommerce/next-ui": "^10.0.0-canary.67",
27
- "@graphcommerce/prettier-config-pwa": "^10.0.0-canary.67",
28
- "@graphcommerce/typescript-config-pwa": "^10.0.0-canary.67",
18
+ "@graphcommerce/ecommerce-ui": "^10.0.0-canary.68",
19
+ "@graphcommerce/eslint-config-pwa": "^10.0.0-canary.68",
20
+ "@graphcommerce/graphql": "^10.0.0-canary.68",
21
+ "@graphcommerce/graphql-mesh": "^10.0.0-canary.68",
22
+ "@graphcommerce/magento-product": "^10.0.0-canary.68",
23
+ "@graphcommerce/magento-search": "^10.0.0-canary.68",
24
+ "@graphcommerce/magento-store": "^10.0.0-canary.68",
25
+ "@graphcommerce/next-config": "^10.0.0-canary.68",
26
+ "@graphcommerce/next-ui": "^10.0.0-canary.68",
27
+ "@graphcommerce/prettier-config-pwa": "^10.0.0-canary.68",
28
+ "@graphcommerce/typescript-config-pwa": "^10.0.0-canary.68",
29
29
  "@lingui/core": "^5",
30
30
  "@lingui/macro": "^5",
31
31
  "@lingui/react": "^5",
32
- "@mui/material": "^5.10.16",
32
+ "@mui/material": "^7.0.0",
33
33
  "next": "*",
34
34
  "react": "^19.2.0",
35
35
  "react-instantsearch-hooks-web": "^6.47.3"