@graphcommerce/next-ui 4.2.3 → 4.3.0
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/AnimatedRow/{index.tsx → AnimatedRow.tsx} +0 -0
- package/Blog/BlogAuthor/{index.tsx → BlogAuthor.tsx} +2 -2
- package/Blog/BlogContent/{index.tsx → BlogContent.tsx} +0 -0
- package/Blog/BlogHeader/{index.tsx → BlogHeader.tsx} +0 -0
- package/Blog/BlogList/{index.tsx → BlogList.tsx} +1 -1
- package/Blog/BlogListItem/{index.tsx → BlogListItem.tsx} +0 -0
- package/Blog/BlogTags/BlogTag.tsx +2 -2
- package/Blog/BlogTags/{index.tsx → BlogTags.tsx} +0 -0
- package/Blog/BlogTitle/{index.tsx → BlogTitle.tsx} +0 -0
- package/Button/LinkOrButton.tsx +23 -11
- package/Button/{index.tsx → index.ts} +0 -0
- package/CHANGELOG.md +753 -1450
- package/ChipMenu/{index.tsx → ChipMenu.tsx} +13 -28
- package/ContainerWithHeader/{index.tsx → ContainerWithHeader.tsx} +1 -1
- package/FlagAvatar/{index.tsx → FlagAvatar.tsx} +0 -0
- package/Footer/Footer.tsx +9 -10
- package/FramerScroller/SidebarGallery.tsx +1 -1
- package/FramerScroller/SidebarSlider.tsx +1 -1
- package/FullPageMessage/{index.tsx → FullPageMessage.tsx} +0 -0
- package/Highlight/{index.tsx → Highlight.tsx} +0 -0
- package/IconHeader/{index.tsx → IconHeader.tsx} +0 -0
- package/JsonLd/{index.tsx → JsonLd.tsx} +0 -0
- package/Layout/components/LayoutHeader.tsx +3 -3
- package/Layout/components/LayoutHeaderBack.tsx +18 -4
- package/Layout/components/LayoutHeaderClose.tsx +1 -1
- package/Layout/components/LayoutHeaderContent.tsx +1 -1
- package/Layout/components/LayoutProvider.tsx +2 -2
- package/Layout/context/layoutContext.tsx +1 -3
- package/Layout/hooks/useScrollY.tsx +1 -1
- package/LayoutDefault/components/LayoutDefault.tsx +14 -4
- package/LayoutOverlay/components/LayoutOverlayBase.tsx +2 -2
- package/LayoutParts/DesktopHeaderBadge.tsx +1 -1
- package/LayoutParts/MenuFab.tsx +47 -10
- package/Page/types.ts +1 -0
- package/PageLoadIndicator/{index.tsx → PageLoadIndicator.tsx} +0 -0
- package/PageMeta/{index.tsx → PageMeta.tsx} +11 -2
- package/Pagination/{index.tsx → Pagination.tsx} +0 -0
- package/RenderType/{index.tsx → RenderType.tsx} +0 -0
- package/Row/ButtonLinkList/ButtonLinkList.tsx +2 -2
- package/Row/ColumnOne/{index.tsx → ColumnOne.tsx} +0 -0
- package/Row/ColumnOneBoxed/{index.tsx → ColumnOneBoxed.tsx} +1 -1
- package/Row/ColumnOneCentered/{index.tsx → ColumnOneCentered.tsx} +1 -1
- package/Row/ColumnThree/{index.tsx → ColumnThree.tsx} +1 -1
- package/Row/ColumnTwo/{index.tsx → ColumnTwo.tsx} +1 -1
- package/Row/ColumnTwoSpread/{index.tsx → ColumnTwoSpread.tsx} +1 -1
- package/Row/ColumnTwoWithTop/{index.tsx → ColumnTwoWithTop.tsx} +1 -1
- package/Row/ContentLinks/{index.tsx → ContentLinks.tsx} +0 -0
- package/Row/HeroBanner/{index.tsx → HeroBanner.tsx} +1 -1
- package/Row/IconBlocks/{IconBlock/index.tsx → IconBlock.tsx} +1 -1
- package/Row/IconBlocks/{index.tsx → IconBlocks.tsx} +1 -1
- package/Row/ImageText/{index.tsx → ImageText.tsx} +2 -2
- package/Row/ImageTextBoxed/{index.tsx → ImageTextBoxed.tsx} +1 -1
- package/Row/ParagraphWithSidebarSlide/{index.tsx → ParagraphWithSidebarSlide.tsx} +1 -1
- package/Row/Quote/{index.tsx → Quote.tsx} +1 -1
- package/Row/{index.tsx → Row.tsx} +0 -0
- package/Row/SpecialBanner/{index.tsx → SpecialBanner.tsx} +1 -1
- package/Row/index.ts +18 -0
- package/SectionContainer/{index.tsx → SectionContainer.tsx} +1 -1
- package/SectionHeader/{index.tsx → SectionHeader.tsx} +0 -0
- package/Separator/{index.tsx → Separator.tsx} +0 -0
- package/Snackbar/MessageSnackbarImpl.tsx +2 -1
- package/StarRatingField/{index.tsx → StarRatingField.tsx} +4 -4
- package/Styles/{index.tsx → index.ts} +0 -9
- package/Styles/withTheme.tsx +1 -0
- package/TextInputNumber/{index.tsx → TextInputNumber.tsx} +1 -5
- package/Theme/MuiButton.ts +2 -2
- package/Theme/MuiChip.ts +86 -0
- package/Theme/MuiFab.ts +21 -0
- package/Theme/MuiSlider.ts +41 -26
- package/Theme/index.ts +4 -3
- package/Theme/themeDefaults.ts +1 -1
- package/TimeAgo/{index.tsx → TimeAgo.tsx} +0 -0
- package/ToggleButton/{index.tsx → ToggleButton.tsx} +1 -0
- package/ToggleButtonGroup/{index.tsx → ToggleButtonGroup.tsx} +8 -6
- package/UspList/{index.tsx → UspList.tsx} +0 -0
- package/docs/components/ComponentChild.tsx +1 -0
- package/docs/components/ComponentChildVariant.tsx +1 -0
- package/docs/components/ComponentChildVariantExtendable.tsx +1 -0
- package/icons/{index.tsx → index.ts} +0 -0
- package/index.ts +28 -45
- package/package.json +10 -11
|
File without changes
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { Avatar, Box, Chip, SxProps } from '@mui/material'
|
|
1
|
+
import { Avatar, Box, Chip, SxProps, Theme } from '@mui/material'
|
|
2
2
|
import { useRouter } from 'next/router'
|
|
3
3
|
import { useMemo } from 'react'
|
|
4
4
|
import { responsiveVal } from '../../Styles/responsiveVal'
|
|
@@ -6,7 +6,7 @@ import { responsiveVal } from '../../Styles/responsiveVal'
|
|
|
6
6
|
export type BlogAuthorProps = {
|
|
7
7
|
author: string
|
|
8
8
|
date: string
|
|
9
|
-
sx?: SxProps
|
|
9
|
+
sx?: SxProps<Theme>
|
|
10
10
|
}
|
|
11
11
|
|
|
12
12
|
export function BlogAuthor(props: BlogAuthorProps) {
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
@@ -1,10 +1,10 @@
|
|
|
1
|
-
import { Chip, SxProps } from '@mui/material'
|
|
1
|
+
import { Chip, SxProps, Theme } from '@mui/material'
|
|
2
2
|
import PageLink from 'next/link'
|
|
3
3
|
|
|
4
4
|
type BlogTagsProps = {
|
|
5
5
|
url: string
|
|
6
6
|
title: string
|
|
7
|
-
sx?: SxProps
|
|
7
|
+
sx?: SxProps<Theme>
|
|
8
8
|
}
|
|
9
9
|
|
|
10
10
|
export function BlogTag(props: BlogTagsProps) {
|
|
File without changes
|
|
File without changes
|
package/Button/LinkOrButton.tsx
CHANGED
|
@@ -42,34 +42,46 @@ export const LinkOrButton = React.forwardRef<
|
|
|
42
42
|
const buttonRef = useForkRef(ref, useRef(null))
|
|
43
43
|
const linkRef = useForkRef(ref, useRef(null))
|
|
44
44
|
|
|
45
|
+
const buttonSx = button?.sx ?? []
|
|
46
|
+
const linkSx = link?.sx ?? []
|
|
45
47
|
return (
|
|
46
48
|
<>
|
|
47
49
|
<Button
|
|
48
|
-
sx={{ display: { xs: 'none', [breakpoint]: 'inline-flex' }, ...button?.sx }}
|
|
49
|
-
ref={buttonRef}
|
|
50
50
|
startIcon={startIcon}
|
|
51
51
|
endIcon={endIcon}
|
|
52
|
-
color={color}
|
|
53
|
-
loading={loading}
|
|
54
52
|
{...sharedProps}
|
|
55
53
|
{...button}
|
|
54
|
+
ref={buttonRef}
|
|
55
|
+
color={color}
|
|
56
|
+
loading={loading}
|
|
57
|
+
sx={[
|
|
58
|
+
{
|
|
59
|
+
display: {
|
|
60
|
+
xs: 'none',
|
|
61
|
+
[breakpoint]: 'inline-flex',
|
|
62
|
+
},
|
|
63
|
+
},
|
|
64
|
+
...(Array.isArray(buttonSx) ? buttonSx : [buttonSx]),
|
|
65
|
+
]}
|
|
56
66
|
>
|
|
57
67
|
{children}
|
|
58
68
|
</Button>
|
|
59
69
|
|
|
60
70
|
<Link
|
|
61
|
-
sx={{
|
|
62
|
-
display: { xs: 'inline-flex', [breakpoint]: 'none' },
|
|
63
|
-
alignItems: 'center',
|
|
64
|
-
...link?.sx,
|
|
65
|
-
}}
|
|
66
71
|
ref={linkRef}
|
|
67
|
-
color={loading ? 'text.disabled' : color}
|
|
68
72
|
underline='none'
|
|
69
|
-
aria-disabled={loading}
|
|
70
73
|
variant='body2'
|
|
71
74
|
{...sharedProps}
|
|
72
75
|
{...link}
|
|
76
|
+
color={loading ? 'text.disabled' : color}
|
|
77
|
+
aria-disabled={loading}
|
|
78
|
+
sx={[
|
|
79
|
+
{
|
|
80
|
+
display: { xs: 'inline-flex', [breakpoint]: 'none' },
|
|
81
|
+
alignItems: 'center',
|
|
82
|
+
},
|
|
83
|
+
...(Array.isArray(linkSx) ? linkSx : [linkSx]),
|
|
84
|
+
]}
|
|
73
85
|
>
|
|
74
86
|
{startIcon}
|
|
75
87
|
<span>{children}</span>
|
|
File without changes
|