@graphcommerce/next-ui 4.31.0-canary.0 → 4.31.0-canary.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
CHANGED
|
@@ -1,5 +1,13 @@
|
|
|
1
1
|
# Change Log
|
|
2
2
|
|
|
3
|
+
## 4.31.0-canary.2
|
|
4
|
+
|
|
5
|
+
## 4.31.0-canary.1
|
|
6
|
+
|
|
7
|
+
### Patch Changes
|
|
8
|
+
|
|
9
|
+
- [#1718](https://github.com/graphcommerce-org/graphcommerce/pull/1718) [`37e86cdc8`](https://github.com/graphcommerce-org/graphcommerce/commit/37e86cdc86ccca3db77d6c59b1e14c8112bb7893) - Remove usage of PropsWithChildren ([@paales](https://github.com/paales))
|
|
10
|
+
|
|
3
11
|
## 4.31.0-canary.0
|
|
4
12
|
|
|
5
13
|
## 4.30.0
|
package/ChipMenu/ChipMenu.tsx
CHANGED
|
@@ -1,19 +1,18 @@
|
|
|
1
1
|
import { Chip, ChipProps, Menu, MenuProps, menuClasses, SxProps, Theme } from '@mui/material'
|
|
2
|
-
import React, {
|
|
2
|
+
import React, { useState } from 'react'
|
|
3
3
|
import { IconSvg } from '../IconSvg'
|
|
4
4
|
import { SectionHeader } from '../SectionHeader/SectionHeader'
|
|
5
5
|
import { responsiveVal } from '../Styles/responsiveVal'
|
|
6
6
|
import { iconChevronDown, iconChevronUp, iconCancelAlt } from '../icons'
|
|
7
7
|
|
|
8
|
-
export type ChipMenuProps =
|
|
9
|
-
Omit<ChipProps<'button'>, 'children' | 'component'>
|
|
10
|
-
> & {
|
|
8
|
+
export type ChipMenuProps = Omit<ChipProps<'button'>, 'children' | 'component'> & {
|
|
11
9
|
selectedLabel?: React.ReactNode
|
|
12
10
|
selected: boolean
|
|
13
11
|
onClose?: () => void
|
|
14
12
|
labelRight?: React.ReactNode
|
|
15
13
|
sx?: SxProps<Theme>
|
|
16
14
|
menuProps?: Partial<MenuProps>
|
|
15
|
+
children?: React.ReactNode
|
|
17
16
|
}
|
|
18
17
|
|
|
19
18
|
export function ChipMenu(props: ChipMenuProps) {
|
|
@@ -1,7 +1,6 @@
|
|
|
1
|
-
import styled from '@emotion/styled'
|
|
2
1
|
import { useMotionValueValue, useMotionSelector } from '@graphcommerce/framer-utils'
|
|
3
2
|
import { i18n } from '@lingui/core'
|
|
4
|
-
import { Box, Fab, SxProps, Theme, useEventCallback,
|
|
3
|
+
import { Box, Fab, SxProps, Theme, useEventCallback, styled } from '@mui/material'
|
|
5
4
|
import { m } from 'framer-motion'
|
|
6
5
|
import React, { useEffect } from 'react'
|
|
7
6
|
import type { LiteralUnion } from 'type-fest'
|
|
@@ -37,7 +36,7 @@ type NavigationOverlayProps = {
|
|
|
37
36
|
itemPadding?: ItemPadding
|
|
38
37
|
} & mouseEventPref
|
|
39
38
|
|
|
40
|
-
const MotionDiv = styled(m.div)()
|
|
39
|
+
const MotionDiv = styled(m.div)({})
|
|
41
40
|
|
|
42
41
|
const componentName = 'Navigation'
|
|
43
42
|
const parts = ['root', 'navigation', 'header', 'column'] as const
|
|
@@ -124,7 +123,7 @@ export const NavigationOverlay = React.memo<NavigationOverlayProps>((props) => {
|
|
|
124
123
|
},
|
|
125
124
|
}}
|
|
126
125
|
>
|
|
127
|
-
<MotionDiv layout
|
|
126
|
+
<MotionDiv layout sx={{ display: 'grid' }}>
|
|
128
127
|
<Box
|
|
129
128
|
className={classes.header}
|
|
130
129
|
sx={(theme) => ({
|
|
@@ -179,7 +178,7 @@ export const NavigationOverlay = React.memo<NavigationOverlayProps>((props) => {
|
|
|
179
178
|
</Box>
|
|
180
179
|
</MotionDiv>
|
|
181
180
|
|
|
182
|
-
<MotionDiv layout='position'
|
|
181
|
+
<MotionDiv layout='position' sx={{ display: 'grid' }}>
|
|
183
182
|
<Box
|
|
184
183
|
sx={[
|
|
185
184
|
(theme) => ({
|
package/package.json
CHANGED
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
"name": "@graphcommerce/next-ui",
|
|
3
3
|
"homepage": "https://www.graphcommerce.org/",
|
|
4
4
|
"repository": "github:graphcommerce-org/graphcommerce",
|
|
5
|
-
"version": "4.31.0-canary.
|
|
5
|
+
"version": "4.31.0-canary.2",
|
|
6
6
|
"author": "",
|
|
7
7
|
"license": "MIT",
|
|
8
8
|
"sideEffects": false,
|
|
@@ -19,10 +19,10 @@
|
|
|
19
19
|
"@emotion/react": "^11.9.3",
|
|
20
20
|
"@emotion/server": "^11.4.0",
|
|
21
21
|
"@emotion/styled": "^11.9.3",
|
|
22
|
-
"@graphcommerce/framer-next-pages": "4.31.0-canary.
|
|
23
|
-
"@graphcommerce/framer-scroller": "4.31.0-canary.
|
|
24
|
-
"@graphcommerce/framer-utils": "4.31.0-canary.
|
|
25
|
-
"@graphcommerce/image": "4.31.0-canary.
|
|
22
|
+
"@graphcommerce/framer-next-pages": "4.31.0-canary.2",
|
|
23
|
+
"@graphcommerce/framer-scroller": "4.31.0-canary.2",
|
|
24
|
+
"@graphcommerce/framer-utils": "4.31.0-canary.2",
|
|
25
|
+
"@graphcommerce/image": "4.31.0-canary.2",
|
|
26
26
|
"cookie": "^0.5.0",
|
|
27
27
|
"react-is": "^18.2.0",
|
|
28
28
|
"schema-dts": "^1.1.0"
|