@graphcommerce/next-ui 11.0.0-canary.72 → 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.
Files changed (42) hide show
  1. package/Blog/BlogAuthor/BlogAuthor.tsx +1 -1
  2. package/Blog/BlogHeader/BlogHeader.tsx +1 -1
  3. package/Blog/BlogListItem/BlogListItem.tsx +1 -1
  4. package/Blog/BlogTitle/BlogTitle.tsx +1 -1
  5. package/Breadcrumbs/BreadcrumbsList.tsx +1 -2
  6. package/CHANGELOG.md +2 -0
  7. package/ChipMenu/ChipMenu.tsx +2 -1
  8. package/Container/Container.tsx +1 -4
  9. package/ContainerWithHeader/ContainerWithHeader.tsx +1 -1
  10. package/FramerScroller/SidebarGallery.tsx +2 -1
  11. package/FullPageMessage/FullPageMessage.tsx +1 -1
  12. package/Layout/components/LayoutHeaderClose.tsx +1 -2
  13. package/Layout/components/LayoutHeaderContent.tsx +2 -1
  14. package/LayoutParts/DesktopNavBar.tsx +1 -1
  15. package/LayoutParts/MenuFabSecondaryItem.tsx +1 -2
  16. package/LayoutParts/StickyBelowHeader.tsx +1 -1
  17. package/LazyHydrate/LazyHydrate.tsx +2 -1
  18. package/Overlay/components/OverlayBase.tsx +2 -1
  19. package/Overlay/components/OverlayHeader.tsx +0 -1
  20. package/OverlayOrPopperChip/OverlayOrPopperChip.tsx +2 -1
  21. package/OverlayOrPopperChip/OverlayPanel.tsx +0 -1
  22. package/Pagination/Pagination.tsx +1 -1
  23. package/Row/ButtonLinkList/ButtonLinkList.tsx +1 -1
  24. package/Row/ButtonLinkList/ButtonLinkListItem.tsx +1 -1
  25. package/Row/ColumnThree/ColumnThree.tsx +1 -1
  26. package/Row/ColumnTwo/ColumnTwo.tsx +1 -1
  27. package/Row/ColumnTwoWithTop/ColumnTwoWithTop.tsx +1 -1
  28. package/Row/ContentLinks/ContentLinks.tsx +1 -1
  29. package/Row/HeroBanner/HeroBanner.tsx +1 -1
  30. package/Row/IconBlocks/IconBlocks.tsx +1 -1
  31. package/Row/ImageText/ImageText.tsx +1 -1
  32. package/Row/ImageTextBoxed/ImageTextBoxed.tsx +1 -1
  33. package/Row/Quote/Quote.tsx +1 -1
  34. package/Row/RowLinks/RowLinks.tsx +1 -1
  35. package/SectionHeader/SectionHeader.tsx +1 -1
  36. package/Separator/Separator.tsx +1 -1
  37. package/Snackbar/MessageSnackbarImpl.tsx +2 -1
  38. package/Tabs/TabItem.tsx +0 -1
  39. package/Theme/NextLink.tsx +2 -1
  40. package/hooks/memoDeep.ts +0 -1
  41. package/package.json +8 -8
  42. package/proxy.ts +1 -1
@@ -11,7 +11,7 @@ export type BlogAuthorProps = {
11
11
  }
12
12
 
13
13
  export function BlogAuthor(props: BlogAuthorProps) {
14
- const { author, date, sx = [] } = props
14
+ const { author, date } = props
15
15
 
16
16
  return (
17
17
  <Box
@@ -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, useTheme } from '@mui/material'
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,7 @@
1
1
  # Change Log
2
2
 
3
+ ## 11.0.0-canary.73
4
+
3
5
  ## 11.0.0-canary.72
4
6
 
5
7
  ## 11.0.0-canary.71
@@ -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, { useState } from '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'
@@ -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.
@@ -1,6 +1,6 @@
1
1
  import type { SxProps, Theme } from '@mui/material'
2
2
  import { Box, Typography } from '@mui/material'
3
- import React from 'react'
3
+ import type React from 'react'
4
4
  import { Row } from '../Row/Row'
5
5
  import { extendableComponent } from '../Styles'
6
6
 
@@ -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, { useCallback, useEffect, useRef } from '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, type ButtonProps } from '@mui/material'
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, { useRef } from '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, { startTransition, useRef, useState } from '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, { useCallback, useEffect, useRef } from '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,5 +1,4 @@
1
1
  import { sxx } from '@graphcommerce/next-ui'
2
- import React from 'react'
3
2
  import type { LayoutHeaderProps, TitleProps } from '../../Layout'
4
3
  import { LayoutTitle } from '../../Layout'
5
4
  import { LayoutHeaderClose } from '../../Layout/components/LayoutHeaderClose'
@@ -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, { useState } from '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,6 +1,6 @@
1
1
  import type { ContainerProps, 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, responsiveVal } from '../../Styles'
5
5
  import { Row } from '../Row'
6
6
 
@@ -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'
@@ -1,5 +1,5 @@
1
1
  import type { ContainerProps } from '@mui/material'
2
- import React from 'react'
2
+ import type React from 'react'
3
3
  import { Row } from '../Row'
4
4
 
5
5
  export type QuoteProps = {
@@ -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', [
@@ -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, { useEffect, useState } from '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'
@@ -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, { forwardRef } from '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.72",
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.72",
47
- "@graphcommerce/framer-next-pages": "^11.0.0-canary.72",
48
- "@graphcommerce/framer-scroller": "^11.0.0-canary.72",
49
- "@graphcommerce/framer-utils": "^11.0.0-canary.72",
50
- "@graphcommerce/image": "^11.0.0-canary.72",
51
- "@graphcommerce/prettier-config-pwa": "^11.0.0-canary.72",
52
- "@graphcommerce/typescript-config-pwa": "^11.0.0-canary.72",
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(request: NextRequest): Response | NextResponse {
9
+ export function proxy(_request: NextRequest): Response | NextResponse {
10
10
  return NextResponse.next()
11
11
  }