@graphcommerce/next-ui 11.0.0-canary.70 → 11.0.0-canary.73
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/ActionCard/ActionCardAccordion.test.tsx +24 -0
- package/ActionCard/ActionCardAccordion.tsx +2 -0
- package/Blog/BlogAuthor/BlogAuthor.tsx +1 -1
- package/Blog/BlogHeader/BlogHeader.tsx +1 -1
- package/Blog/BlogListItem/BlogListItem.tsx +1 -1
- package/Blog/BlogTitle/BlogTitle.tsx +1 -1
- package/Breadcrumbs/BreadcrumbsList.tsx +1 -2
- package/CHANGELOG.md +10 -0
- package/ChipMenu/ChipMenu.tsx +2 -1
- package/Container/Container.tsx +1 -4
- package/ContainerWithHeader/ContainerWithHeader.tsx +1 -1
- package/FramerScroller/SidebarGallery.tsx +2 -1
- package/FullPageMessage/FullPageMessage.tsx +1 -1
- package/Layout/components/LayoutHeaderClose.tsx +1 -2
- package/Layout/components/LayoutHeaderContent.tsx +2 -1
- package/LayoutParts/DesktopNavBar.tsx +1 -1
- package/LayoutParts/MenuFabSecondaryItem.tsx +1 -2
- package/LayoutParts/StickyBelowHeader.tsx +1 -1
- package/LazyHydrate/LazyHydrate.tsx +2 -1
- package/Overlay/components/OverlayBase.tsx +2 -1
- package/Overlay/components/OverlayHeader.tsx +0 -1
- package/OverlayOrPopperChip/OverlayOrPopperChip.tsx +2 -1
- package/OverlayOrPopperChip/OverlayPanel.tsx +0 -1
- package/Pagination/Pagination.tsx +1 -1
- package/Row/ButtonLinkList/ButtonLinkList.tsx +1 -1
- package/Row/ButtonLinkList/ButtonLinkListItem.tsx +1 -1
- package/Row/ColumnThree/ColumnThree.tsx +1 -1
- package/Row/ColumnTwo/ColumnTwo.tsx +1 -1
- package/Row/ColumnTwoWithTop/ColumnTwoWithTop.tsx +1 -1
- package/Row/ContentLinks/ContentLinks.tsx +1 -1
- package/Row/HeroBanner/HeroBanner.tsx +1 -1
- package/Row/IconBlocks/IconBlocks.tsx +1 -1
- package/Row/ImageText/ImageText.tsx +1 -1
- package/Row/ImageTextBoxed/ImageTextBoxed.tsx +1 -1
- package/Row/Quote/Quote.tsx +1 -1
- package/Row/RowLinks/RowLinks.tsx +1 -1
- package/SectionHeader/SectionHeader.tsx +1 -1
- package/Separator/Separator.tsx +1 -1
- package/Snackbar/MessageSnackbarImpl.tsx +2 -1
- package/Tabs/TabItem.tsx +0 -1
- package/Theme/NextLink.tsx +2 -1
- package/hooks/memoDeep.ts +0 -1
- package/package.json +8 -8
- package/proxy.ts +1 -1
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
// @vitest-environment happy-dom
|
|
2
|
+
|
|
3
|
+
import { createTheme, ThemeProvider } from '@mui/material'
|
|
4
|
+
import { cleanup, render } from '@testing-library/react'
|
|
5
|
+
import { afterEach, expect, it } from 'vitest'
|
|
6
|
+
import { ActionCardAccordion } from './ActionCardAccordion'
|
|
7
|
+
|
|
8
|
+
const theme = createTheme({ cssVariables: true })
|
|
9
|
+
|
|
10
|
+
afterEach(() => cleanup())
|
|
11
|
+
|
|
12
|
+
it('renders a button in right without a button around it', () => {
|
|
13
|
+
const { container } = render(
|
|
14
|
+
<ThemeProvider theme={theme}>
|
|
15
|
+
<ActionCardAccordion
|
|
16
|
+
summary='Sort by'
|
|
17
|
+
details={null}
|
|
18
|
+
right={<button type='button'>Clear</button>}
|
|
19
|
+
/>
|
|
20
|
+
</ThemeProvider>,
|
|
21
|
+
)
|
|
22
|
+
|
|
23
|
+
expect(container.querySelector('button button')).toBeNull()
|
|
24
|
+
})
|
|
@@ -39,6 +39,8 @@ export function ActionCardAccordion(props: ActionCardAccordionProps) {
|
|
|
39
39
|
)}
|
|
40
40
|
>
|
|
41
41
|
<AccordionSummary
|
|
42
|
+
// MUI renders the summary as a button, and `right` can hold a button
|
|
43
|
+
component='div'
|
|
42
44
|
onClick={(e) => e.preventDefault()}
|
|
43
45
|
expandIcon={<IconSvg src={iconChevronDown} />}
|
|
44
46
|
sx={{
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { sxx } from '@graphcommerce/next-ui'
|
|
2
2
|
import type { SxProps, Theme } from '@mui/material'
|
|
3
3
|
import { Box } from '@mui/material'
|
|
4
|
-
import React from 'react'
|
|
4
|
+
import type React from 'react'
|
|
5
5
|
import { extendableComponent } from '../../Styles'
|
|
6
6
|
import { breakpointVal } from '../../Styles/breakpointVal'
|
|
7
7
|
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { sxx } from '@graphcommerce/next-ui'
|
|
2
2
|
import type { SxProps, Theme } from '@mui/material'
|
|
3
3
|
import { Box, Link, Typography } from '@mui/material'
|
|
4
|
-
import React from 'react'
|
|
4
|
+
import type React from 'react'
|
|
5
5
|
import { DateFormat } from '../../Intl'
|
|
6
6
|
import { extendableComponent } from '../../Styles'
|
|
7
7
|
import { breakpointVal } from '../../Styles/breakpointVal'
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { sxx } from '@graphcommerce/next-ui'
|
|
2
2
|
import { Box } from '@mui/material'
|
|
3
|
-
import React from 'react'
|
|
3
|
+
import type React from 'react'
|
|
4
4
|
import { LayoutTitle } from '../../Layout'
|
|
5
5
|
|
|
6
6
|
export type BlogTitleProps = Pick<React.ComponentProps<typeof Box>, 'sx' | 'children'>
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { Trans } from '@lingui/react/macro'
|
|
2
|
-
import { Box, Link
|
|
2
|
+
import { Box, Link } from '@mui/material'
|
|
3
3
|
import type { KeyboardEvent } from 'react'
|
|
4
4
|
import { useEffect, useRef } from 'react'
|
|
5
5
|
import type { BreadcrumbsType } from './types'
|
|
@@ -15,7 +15,6 @@ export type PopperBreadcrumbsListProps = {
|
|
|
15
15
|
export function BreadcrumbsList(props: PopperBreadcrumbsListProps) {
|
|
16
16
|
const { autoFocus, breadcrumbs, showDesktopAmount = 4, showMobileAmount = 3, onClose } = props
|
|
17
17
|
const listRef = useRef<HTMLDivElement | null>(null)
|
|
18
|
-
const theme = useTheme()
|
|
19
18
|
|
|
20
19
|
const handleKeyDown = (event: KeyboardEvent) => {
|
|
21
20
|
if (event.key === 'Escape') {
|
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,15 @@
|
|
|
1
1
|
# Change Log
|
|
2
2
|
|
|
3
|
+
## 11.0.0-canary.73
|
|
4
|
+
|
|
5
|
+
## 11.0.0-canary.72
|
|
6
|
+
|
|
7
|
+
## 11.0.0-canary.71
|
|
8
|
+
|
|
9
|
+
### Patch Changes
|
|
10
|
+
|
|
11
|
+
- [#2735](https://github.com/graphcommerce-org/graphcommerce/pull/2735) [`758b863`](https://github.com/graphcommerce-org/graphcommerce/commit/758b863f005a812c79f6bbe9cf98e2a6a03a265a) - Fix hydration error #418 on a category page with an active filter or sort: `ActionCardAccordion` renders its summary as a `div`, so the clear button in `right` is not a button in a button. ([@bramvanderholst](https://github.com/bramvanderholst))
|
|
12
|
+
|
|
3
13
|
## 11.0.0-canary.70
|
|
4
14
|
|
|
5
15
|
## 11.0.0-canary.69
|
package/ChipMenu/ChipMenu.tsx
CHANGED
|
@@ -1,7 +1,8 @@
|
|
|
1
1
|
import { sxx } from '@graphcommerce/next-ui'
|
|
2
2
|
import type { ChipProps, MenuProps, SxProps, Theme } from '@mui/material'
|
|
3
3
|
import { Chip, Menu, menuClasses } from '@mui/material'
|
|
4
|
-
import React
|
|
4
|
+
import type React from 'react'
|
|
5
|
+
import { useState } from 'react'
|
|
5
6
|
import { iconCancelAlt, iconChevronDown, iconChevronUp } from '../icons'
|
|
6
7
|
import { IconSvg } from '../IconSvg'
|
|
7
8
|
import { SectionHeader } from '../SectionHeader/SectionHeader'
|
package/Container/Container.tsx
CHANGED
|
@@ -19,10 +19,7 @@ export type ContainerSizingProps = Omit<ContainerProps, 'maxWidth'> & OwnerProps
|
|
|
19
19
|
|
|
20
20
|
const name = 'MuiContainer'
|
|
21
21
|
const slots = ['root'] as const
|
|
22
|
-
const { withState } = extendableComponent<OwnerProps, typeof name, typeof slots>(
|
|
23
|
-
'MuiContainer',
|
|
24
|
-
slots,
|
|
25
|
-
)
|
|
22
|
+
const { withState } = extendableComponent<OwnerProps, typeof name, typeof slots>(name, slots)
|
|
26
23
|
|
|
27
24
|
/**
|
|
28
25
|
* Calculate the padding and margin for a container.
|
|
@@ -16,7 +16,8 @@ import type { SxProps, Theme } from '@mui/material'
|
|
|
16
16
|
import { Box, Fab, styled, Unstable_TrapFocus as TrapFocus, useTheme } from '@mui/material'
|
|
17
17
|
import { m, useDomEvent, useMotionValue } from 'motion/react'
|
|
18
18
|
import { useRouter } from 'next/router'
|
|
19
|
-
import React
|
|
19
|
+
import type React from 'react'
|
|
20
|
+
import { useCallback, useEffect, useRef } from 'react'
|
|
20
21
|
import { iconChevronLeft, iconChevronRight, iconFullscreen, iconFullscreenExit } from '../icons'
|
|
21
22
|
import { IconSvg } from '../IconSvg'
|
|
22
23
|
import { Row } from '../Row/Row'
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { sxx } from '@graphcommerce/next-ui'
|
|
2
2
|
import type { SxProps, Theme } from '@mui/material'
|
|
3
3
|
import { Box, Container, Typography } from '@mui/material'
|
|
4
|
-
import React from 'react'
|
|
4
|
+
import type React from 'react'
|
|
5
5
|
import { extendableComponent } from '../Styles'
|
|
6
6
|
import { responsiveVal } from '../Styles/responsiveVal'
|
|
7
7
|
|
|
@@ -1,8 +1,7 @@
|
|
|
1
1
|
import { useGo, usePageContext } from '@graphcommerce/framer-next-pages'
|
|
2
2
|
import { t } from '@lingui/core/macro'
|
|
3
|
-
import { Fab
|
|
3
|
+
import { Fab } from '@mui/material'
|
|
4
4
|
import { useState } from 'react'
|
|
5
|
-
import { Button } from '../../Button'
|
|
6
5
|
import type { FabProps } from '../../Fab'
|
|
7
6
|
import { iconClose } from '../../icons'
|
|
8
7
|
import { IconSvg, useIconSvgSize } from '../../IconSvg'
|
|
@@ -4,7 +4,8 @@ import type { SxProps, Theme } from '@mui/material'
|
|
|
4
4
|
import { Box, styled } from '@mui/material'
|
|
5
5
|
import type { MotionNodeLayoutOptions } from 'motion/react'
|
|
6
6
|
import { m } from 'motion/react'
|
|
7
|
-
import React
|
|
7
|
+
import type React from 'react'
|
|
8
|
+
import { useRef } from 'react'
|
|
8
9
|
import { Container } from '../../Container/Container'
|
|
9
10
|
import { extendableComponent } from '../../Styles'
|
|
10
11
|
import { useScrollY } from '../hooks/useScrollY'
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { Scroller, ScrollerButton, ScrollerProvider } from '@graphcommerce/framer-scroller'
|
|
2
2
|
import { sxx } from '@graphcommerce/next-ui'
|
|
3
3
|
import type { BoxProps } from '@mui/material'
|
|
4
|
-
import React from 'react'
|
|
4
|
+
import type React from 'react'
|
|
5
5
|
import { iconChevronLeft, iconChevronRight } from '../icons'
|
|
6
6
|
import type { IconSvgProps } from '../IconSvg'
|
|
7
7
|
import { IconSvg } from '../IconSvg'
|
|
@@ -1,9 +1,8 @@
|
|
|
1
|
-
import { sxx } from '@graphcommerce/next-ui'
|
|
2
1
|
import type { SxProps, Theme } from '@mui/material'
|
|
3
2
|
import { ListItemButton, ListItemIcon, ListItemText } from '@mui/material'
|
|
4
3
|
import { useRouter } from 'next/router'
|
|
5
4
|
import type { MouseEventHandler } from 'react'
|
|
6
|
-
import React from 'react'
|
|
5
|
+
import type React from 'react'
|
|
7
6
|
import { extendableComponent } from '../Styles'
|
|
8
7
|
import { NextLink } from '../Theme'
|
|
9
8
|
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { sxx } from '@graphcommerce/next-ui'
|
|
2
2
|
import type { SxProps, Theme } from '@mui/material'
|
|
3
3
|
import { Container } from '@mui/material'
|
|
4
|
-
import React from 'react'
|
|
4
|
+
import type React from 'react'
|
|
5
5
|
import { extendableComponent } from '../Styles'
|
|
6
6
|
|
|
7
7
|
export type StickyBelowHeaderProps = {
|
|
@@ -3,7 +3,8 @@ import type { BoxProps } from '@mui/material'
|
|
|
3
3
|
import { Box } from '@mui/material'
|
|
4
4
|
import { cancelIdleCallback, requestIdleCallback } from 'next/dist/client/request-idle-callback'
|
|
5
5
|
import type { CSSProperties } from 'react'
|
|
6
|
-
import React
|
|
6
|
+
import type React from 'react'
|
|
7
|
+
import { startTransition, useRef, useState } from 'react'
|
|
7
8
|
|
|
8
9
|
export type LazyHydrateProps = BoxProps<'div'> & {
|
|
9
10
|
/**
|
|
@@ -19,7 +19,8 @@ import {
|
|
|
19
19
|
useMotionValueEvent,
|
|
20
20
|
useTransform,
|
|
21
21
|
} from 'motion/react'
|
|
22
|
-
import React
|
|
22
|
+
import type React from 'react'
|
|
23
|
+
import { useCallback, useEffect, useRef } from 'react'
|
|
23
24
|
import { useMatchMedia } from '../../hooks/useMatchMedia'
|
|
24
25
|
import { LayoutProvider } from '../../Layout/components/LayoutProvider'
|
|
25
26
|
import type { ExtendableComponent } from '../../Styles'
|
|
@@ -1,7 +1,8 @@
|
|
|
1
1
|
import { sxx } from '@graphcommerce/next-ui'
|
|
2
2
|
import type { ChipProps, SxProps, Theme } from '@mui/material'
|
|
3
3
|
import { Badge, Chip, Typography, useEventCallback } from '@mui/material'
|
|
4
|
-
import React
|
|
4
|
+
import type React from 'react'
|
|
5
|
+
import { useState } from 'react'
|
|
5
6
|
import { iconChevronDown, iconChevronUp } from '../icons'
|
|
6
7
|
import { IconSvg } from '../IconSvg'
|
|
7
8
|
import { responsiveVal } from '../Styles'
|
|
@@ -1,7 +1,6 @@
|
|
|
1
1
|
import { sxx } from '@graphcommerce/next-ui'
|
|
2
2
|
import { Overlay } from '../Overlay/components/Overlay'
|
|
3
3
|
import type { OverlayProps } from '../Overlay/components/OverlaySsr'
|
|
4
|
-
import { nonNullable } from '../RenderType/nonNullable'
|
|
5
4
|
import { OverlayPanelActions } from './OverlayPanelActions'
|
|
6
5
|
import type { PanelProps } from './types'
|
|
7
6
|
|
|
@@ -4,7 +4,7 @@ import type { PaginationProps, SxProps, Theme } from '@mui/material'
|
|
|
4
4
|
import { Box, IconButton } from '@mui/material'
|
|
5
5
|
import type { UsePaginationItem } from '@mui/material/usePagination'
|
|
6
6
|
import usePagination from '@mui/material/usePagination'
|
|
7
|
-
import React from 'react'
|
|
7
|
+
import type React from 'react'
|
|
8
8
|
import { iconChevronLeft, iconChevronRight } from '../icons'
|
|
9
9
|
import { IconSvg } from '../IconSvg'
|
|
10
10
|
import { extendableComponent } from '../Styles'
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { sxx } from '@graphcommerce/next-ui'
|
|
2
2
|
import type { SxProps, Theme } from '@mui/material'
|
|
3
3
|
import { Box, Typography } from '@mui/material'
|
|
4
|
-
import React from 'react'
|
|
4
|
+
import type React from 'react'
|
|
5
5
|
import { extendableComponent } from '../../Styles'
|
|
6
6
|
import { responsiveVal } from '../../Styles/responsiveVal'
|
|
7
7
|
import { Row } from '../Row'
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import type { ListItemButtonProps } from '@mui/material'
|
|
2
2
|
import { ListItemButton, ListItemIcon, ListItemText } from '@mui/material'
|
|
3
|
-
import React from 'react'
|
|
3
|
+
import type React from 'react'
|
|
4
4
|
import { iconChevronRight } from '../../icons'
|
|
5
5
|
import { IconSvg } from '../../IconSvg'
|
|
6
6
|
import { NextLink } from '../../Theme'
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { sxx } from '@graphcommerce/next-ui'
|
|
2
2
|
import type { ContainerProps } from '@mui/material'
|
|
3
3
|
import { Box } from '@mui/material'
|
|
4
|
-
import React from 'react'
|
|
4
|
+
import type React from 'react'
|
|
5
5
|
import { extendableComponent } from '../../Styles'
|
|
6
6
|
import { Row } from '../Row'
|
|
7
7
|
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { sxx } from '@graphcommerce/next-ui'
|
|
2
2
|
import type { ContainerProps } from '@mui/material'
|
|
3
3
|
import { Box } from '@mui/material'
|
|
4
|
-
import React from 'react'
|
|
4
|
+
import type React from 'react'
|
|
5
5
|
import { extendableComponent } from '../../Styles'
|
|
6
6
|
import { Row } from '../Row'
|
|
7
7
|
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { sxx } from '@graphcommerce/next-ui'
|
|
2
2
|
import type { ContainerProps } from '@mui/material'
|
|
3
3
|
import { Box } from '@mui/material'
|
|
4
|
-
import React from 'react'
|
|
4
|
+
import type React from 'react'
|
|
5
5
|
import { extendableComponent } from '../../Styles'
|
|
6
6
|
import { Row } from '../Row'
|
|
7
7
|
|
|
@@ -2,7 +2,7 @@ import { Scroller, ScrollerProvider } from '@graphcommerce/framer-scroller'
|
|
|
2
2
|
import { sxx } from '@graphcommerce/next-ui'
|
|
3
3
|
import type { SxProps, Theme } from '@mui/material'
|
|
4
4
|
import { Container, Typography } from '@mui/material'
|
|
5
|
-
import React from 'react'
|
|
5
|
+
import type React from 'react'
|
|
6
6
|
import { extendableComponent } from '../../Styles'
|
|
7
7
|
|
|
8
8
|
export type ContentLinksProps = {
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { sxx } from '@graphcommerce/next-ui'
|
|
2
2
|
import type { SxProps, Theme } from '@mui/material'
|
|
3
3
|
import { Box } from '@mui/material'
|
|
4
|
-
import React from 'react'
|
|
4
|
+
import type React from 'react'
|
|
5
5
|
import { extendableComponent } from '../../Styles'
|
|
6
6
|
import { responsiveVal } from '../../Styles/responsiveVal'
|
|
7
7
|
import { Row } from '../Row'
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import type { SxProps, Theme } from '@mui/material'
|
|
2
2
|
import { Box } from '@mui/material'
|
|
3
|
-
import React from 'react'
|
|
3
|
+
import type React from 'react'
|
|
4
4
|
import { extendableComponent } from '../../Styles'
|
|
5
5
|
import { breakpointVal } from '../../Styles/breakpointVal'
|
|
6
6
|
import { Row } from '../Row'
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import type { SxProps, Theme } from '@mui/material'
|
|
2
2
|
import { Box } from '@mui/material'
|
|
3
|
-
import React from 'react'
|
|
3
|
+
import type React from 'react'
|
|
4
4
|
import { extendableComponent } from '../../Styles'
|
|
5
5
|
import { breakpointVal } from '../../Styles/breakpointVal'
|
|
6
6
|
import { responsiveVal } from '../../Styles/responsiveVal'
|
package/Row/Quote/Quote.tsx
CHANGED
|
@@ -2,7 +2,7 @@ import type { ScrollerButtonProps } from '@graphcommerce/framer-scroller'
|
|
|
2
2
|
import { Scroller, ScrollerButton, ScrollerProvider } from '@graphcommerce/framer-scroller'
|
|
3
3
|
import type { ContainerProps, SxProps, Theme } from '@mui/material'
|
|
4
4
|
import { Box, Typography } from '@mui/material'
|
|
5
|
-
import React from 'react'
|
|
5
|
+
import type React from 'react'
|
|
6
6
|
import { Container, useContainerSpacing } from '../../Container/Container'
|
|
7
7
|
import { iconChevronLeft, iconChevronRight } from '../../icons'
|
|
8
8
|
import { IconSvg } from '../../IconSvg'
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { sxx } from '@graphcommerce/next-ui'
|
|
2
2
|
import type { SxProps, Theme, TypographyProps } from '@mui/material'
|
|
3
3
|
import { Box, Typography } from '@mui/material'
|
|
4
|
-
import React from 'react'
|
|
4
|
+
import type React from 'react'
|
|
5
5
|
import { extendableComponent } from '../Styles'
|
|
6
6
|
|
|
7
7
|
const { classes, selectors } = extendableComponent('SectionHeader', [
|
package/Separator/Separator.tsx
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { sxx } from '@graphcommerce/next-ui'
|
|
2
2
|
import type { TypographyProps } from '@mui/material'
|
|
3
3
|
import { Box, Typography } from '@mui/material'
|
|
4
|
-
import React from 'react'
|
|
4
|
+
import type React from 'react'
|
|
5
5
|
import { extendableComponent } from '../Styles'
|
|
6
6
|
|
|
7
7
|
export type DividedLinksProps = {
|
|
@@ -2,7 +2,8 @@ import { sxx } from '@graphcommerce/next-ui'
|
|
|
2
2
|
import { t } from '@lingui/core/macro'
|
|
3
3
|
import type { SnackbarProps, SxProps, Theme } from '@mui/material'
|
|
4
4
|
import { Box, Fab, Portal, Snackbar, SnackbarContent } from '@mui/material'
|
|
5
|
-
import React
|
|
5
|
+
import type React from 'react'
|
|
6
|
+
import { useEffect, useState } from 'react'
|
|
6
7
|
import { iconCheckmark, iconClose, iconSadFace } from '../icons'
|
|
7
8
|
import iconInfo from '../icons/info.svg'
|
|
8
9
|
import type { IconSvgProps } from '../IconSvg'
|
package/Tabs/TabItem.tsx
CHANGED
|
@@ -1,5 +1,4 @@
|
|
|
1
1
|
import { Box, ButtonBase, type SxProps, type Theme } from '@mui/material'
|
|
2
|
-
import { useTheme } from '@mui/material/styles'
|
|
3
2
|
import { forwardRef } from 'react'
|
|
4
3
|
import { extendableComponent } from '../Styles/extendableComponent'
|
|
5
4
|
import { responsiveVal } from '../Styles/responsiveVal'
|
package/Theme/NextLink.tsx
CHANGED
|
@@ -2,7 +2,8 @@ import { canonicalBaseUrl } from '@graphcommerce/next-config/config'
|
|
|
2
2
|
import type { LinkProps as NextLinkProps } from 'next/link'
|
|
3
3
|
import Link from 'next/link'
|
|
4
4
|
import { useRouter } from 'next/router'
|
|
5
|
-
import React
|
|
5
|
+
import type React from 'react'
|
|
6
|
+
import { forwardRef } from 'react'
|
|
6
7
|
import { useStorefrontConfig } from '../hooks/useStorefrontConfig'
|
|
7
8
|
|
|
8
9
|
export type NextLinkPropsBase = Omit<NextLinkProps, 'legacyBehavior' | 'passHref' | 'as'>
|
package/hooks/memoDeep.ts
CHANGED
|
@@ -1,5 +1,4 @@
|
|
|
1
1
|
// eslint-disable-next-line import/no-extraneous-dependencies
|
|
2
|
-
import { diff } from '@graphcommerce/react-hook-form'
|
|
3
2
|
// eslint-disable-next-line import/no-extraneous-dependencies
|
|
4
3
|
import { equal } from '@wry/equality'
|
|
5
4
|
import type { FunctionComponent, NamedExoticComponent } from 'react'
|
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": "11.0.0-canary.
|
|
5
|
+
"version": "11.0.0-canary.73",
|
|
6
6
|
"sideEffects": false,
|
|
7
7
|
"prettier": "@graphcommerce/prettier-config-pwa",
|
|
8
8
|
"eslintConfig": {
|
|
@@ -43,13 +43,13 @@
|
|
|
43
43
|
"@emotion/react": "^11.14.0",
|
|
44
44
|
"@emotion/server": "^11.11.0",
|
|
45
45
|
"@emotion/styled": "^11.14.1",
|
|
46
|
-
"@graphcommerce/eslint-config-pwa": "^11.0.0-canary.
|
|
47
|
-
"@graphcommerce/framer-next-pages": "^11.0.0-canary.
|
|
48
|
-
"@graphcommerce/framer-scroller": "^11.0.0-canary.
|
|
49
|
-
"@graphcommerce/framer-utils": "^11.0.0-canary.
|
|
50
|
-
"@graphcommerce/image": "^11.0.0-canary.
|
|
51
|
-
"@graphcommerce/prettier-config-pwa": "^11.0.0-canary.
|
|
52
|
-
"@graphcommerce/typescript-config-pwa": "^11.0.0-canary.
|
|
46
|
+
"@graphcommerce/eslint-config-pwa": "^11.0.0-canary.73",
|
|
47
|
+
"@graphcommerce/framer-next-pages": "^11.0.0-canary.73",
|
|
48
|
+
"@graphcommerce/framer-scroller": "^11.0.0-canary.73",
|
|
49
|
+
"@graphcommerce/framer-utils": "^11.0.0-canary.73",
|
|
50
|
+
"@graphcommerce/image": "^11.0.0-canary.73",
|
|
51
|
+
"@graphcommerce/prettier-config-pwa": "^11.0.0-canary.73",
|
|
52
|
+
"@graphcommerce/typescript-config-pwa": "^11.0.0-canary.73",
|
|
53
53
|
"@lingui/core": "^6",
|
|
54
54
|
"@lingui/react": "^6",
|
|
55
55
|
"@mui/lab": "7.0.1-beta.25",
|
package/proxy.ts
CHANGED
|
@@ -6,6 +6,6 @@ import { NextResponse } from 'next/server'
|
|
|
6
6
|
*
|
|
7
7
|
* Extend this via function plugins to add authentication checks, redirects, etc.
|
|
8
8
|
*/
|
|
9
|
-
export function proxy(
|
|
9
|
+
export function proxy(_request: NextRequest): Response | NextResponse {
|
|
10
10
|
return NextResponse.next()
|
|
11
11
|
}
|