@graphcommerce/next-ui 3.19.1 → 3.20.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.
Files changed (95) hide show
  1. package/AppShell/AppShellSticky/index.tsx +3 -19
  2. package/AppShell/DesktopNavActions.tsx +3 -4
  3. package/AppShell/DesktopNavBar.tsx +2 -3
  4. package/AppShell/FixedFab.tsx +1 -6
  5. package/AppShell/GlobalHead.tsx +36 -0
  6. package/AppShell/Logo.tsx +11 -20
  7. package/AppShell/MenuFab.tsx +5 -3
  8. package/AppShell/MenuFabSecondaryItem.tsx +3 -3
  9. package/AppShell/PlaceholderFab/index.tsx +8 -27
  10. package/AppShell/index.tsx +19 -0
  11. package/AppShell/useFabAnimation.tsx +3 -2
  12. package/AppShell/useFixedFabAnimation.tsx +3 -2
  13. package/Blog/BlogAuthor/index.tsx +1 -1
  14. package/Blog/BlogHeader/index.tsx +2 -3
  15. package/Blog/BlogList/index.tsx +1 -1
  16. package/Blog/BlogListItem/index.tsx +1 -1
  17. package/Blog/BlogTitle/index.tsx +5 -5
  18. package/Button/index.tsx +26 -21
  19. package/CHANGELOG.md +30 -0
  20. package/ChipMenu/index.tsx +2 -2
  21. package/FlagAvatar/index.tsx +3 -3
  22. package/{AppShell/Footer/index.tsx → Footer/Footer.tsx} +3 -3
  23. package/{AppShell/Footer → Footer}/SocialIcon.tsx +3 -3
  24. package/Footer/index.ts +2 -0
  25. package/Form/InputCheckmark.tsx +3 -3
  26. package/Form/index.tsx +1 -1
  27. package/FramerScroller/components/SidebarGallery.tsx +24 -20
  28. package/FramerScroller/components/SidebarSlider.tsx +2 -6
  29. package/FullPageMessage/index.tsx +1 -1
  30. package/IconHeader/index.tsx +2 -15
  31. package/Layout/components/LayoutHeader.tsx +151 -0
  32. package/Layout/components/LayoutHeaderBack.tsx +50 -0
  33. package/Layout/components/LayoutHeaderClose.tsx +27 -0
  34. package/Layout/components/LayoutHeaderContent.tsx +173 -0
  35. package/Layout/components/LayoutHeadertypes.ts +10 -0
  36. package/Layout/components/LayoutProvider.tsx +17 -0
  37. package/{Title/index.tsx → Layout/components/LayoutTitle.tsx} +24 -15
  38. package/Layout/context/layoutContext.tsx +7 -0
  39. package/Layout/hooks/useScrollY.tsx +6 -0
  40. package/Layout/index.ts +5 -0
  41. package/Layout/types.ts +5 -0
  42. package/LayoutDefault/components/LayoutDefault.tsx +90 -0
  43. package/LayoutDefault/index.ts +1 -0
  44. package/LayoutOverlay/components/LayoutOverlay.tsx +25 -0
  45. package/LayoutOverlay/components/LayoutOverlayBase.tsx +354 -0
  46. package/LayoutOverlay/components/LayoutOverlayHeader.tsx +5 -0
  47. package/LayoutOverlay/hooks/useOverlayPosition.ts +70 -0
  48. package/LayoutOverlay/index.ts +2 -0
  49. package/Page/App.tsx +2 -0
  50. package/PageMeta/index.tsx +3 -0
  51. package/Pagination/index.tsx +0 -1
  52. package/Row/ButtonLinkList/index.tsx +1 -1
  53. package/Row/ColumnOneBoxed/index.tsx +1 -1
  54. package/Row/ColumnTwoWithTop/index.tsx +3 -3
  55. package/Row/ContentLinks/index.tsx +3 -3
  56. package/Row/HeroBanner/index.tsx +7 -11
  57. package/Row/IconBlocks/index.tsx +1 -1
  58. package/Row/ImageText/index.tsx +1 -1
  59. package/Row/ImageTextBoxed/index.tsx +1 -1
  60. package/Row/ParagraphWithSidebarSlide/index.tsx +1 -1
  61. package/Row/SpecialBanner/index.tsx +4 -3
  62. package/Row/index.tsx +1 -1
  63. package/Snackbar/MessageSnackbarImpl.tsx +1 -1
  64. package/StarRatingField/index.tsx +3 -4
  65. package/Stepper/Stepper.tsx +1 -1
  66. package/Styles/breakpointVal.tsx +2 -2
  67. package/Styles/classesPicker.ts +41 -0
  68. package/Styles/responsiveVal.tsx +1 -1
  69. package/SvgImage/SvgImageSimple.tsx +9 -8
  70. package/SvgImage/index.tsx +9 -11
  71. package/TextInputNumber/index.tsx +3 -4
  72. package/Theme/types.ts +14 -12
  73. package/ToggleButton/index.tsx +2 -4
  74. package/UspList/UspListItem.tsx +1 -1
  75. package/index.ts +9 -43
  76. package/package.json +8 -9
  77. package/AppShell/AppShellHeader/appShellHeaderContext.tsx +0 -11
  78. package/AppShell/AppShellHeader/index.tsx +0 -439
  79. package/AppShell/AppShellHeader/useAppShellHeaderContext.tsx +0 -6
  80. package/AppShell/AppShellProvider/index.tsx +0 -18
  81. package/AppShell/AppShellTitle/index.tsx +0 -45
  82. package/AppShell/ForwardButton.tsx +0 -53
  83. package/AppShell/FullPageShellBase.tsx +0 -82
  84. package/AppShell/MinimalPageShellBase.tsx +0 -22
  85. package/AppShell/PageShellHeader/index.tsx +0 -14
  86. package/AppShell/SheetShellBase/index.tsx +0 -114
  87. package/AppShell/SheetShellBase/useSheetStyles.ts +0 -18
  88. package/AppShell/SheetShellDragIndicator/index.tsx +0 -55
  89. package/AppShell/SheetShellHeader/index.tsx +0 -28
  90. package/AppShell/ShellBase.tsx +0 -45
  91. package/Debug/DebugSpacer.tsx +0 -51
  92. package/FramerNextPagesSlider/Slide.tsx +0 -71
  93. package/FramerNextPagesSlider/Slider.tsx +0 -39
  94. package/FramerNextPagesSlider/index.ts +0 -1
  95. package/FramerNextPagesSlider/types.ts +0 -3
@@ -1,9 +1,10 @@
1
1
  import { ContainerProps, Theme, makeStyles, useTheme, useMediaQuery } from '@material-ui/core'
2
- import { m, useTransform, useViewportScroll } from 'framer-motion'
2
+ import { m, useTransform } from 'framer-motion'
3
3
  import React from 'react'
4
4
  import Row from '..'
5
+ import { useScrollY } from '../../Layout/hooks/useScrollY'
5
6
  import { UseStyles } from '../../Styles'
6
- import responsiveVal from '../../Styles/responsiveVal'
7
+ import { responsiveVal } from '../../Styles/responsiveVal'
7
8
 
8
9
  const useStyles = makeStyles(
9
10
  (theme: Theme) => ({
@@ -19,19 +20,14 @@ const useStyles = makeStyles(
19
20
  alignContent: 'center',
20
21
  padding: `${theme.spacings.lg} ${theme.spacings.md}`,
21
22
  paddingTop: `calc(${theme.spacings.lg} - ${theme.spacings.md})`,
22
- minHeight: `calc(100vh - ${theme.page.headerInnerHeight.sm})`,
23
+ minHeight: `calc(100vh - ${theme.appShell.headerHeightSm})`,
23
24
  '& > *': {
24
25
  zIndex: 1,
25
26
  maxWidth: 'max-content',
26
27
  },
27
- [theme.breakpoints.down('sm')]: {
28
- ['@supports (-webkit-touch-callout: none)']: {
29
- minHeight: '-webkit-fill-available',
30
- },
31
- },
32
28
  [theme.breakpoints.up('md')]: {
33
29
  width: '70%',
34
- minHeight: `calc(100vh - ${theme.page.headerInnerHeight.md})`,
30
+ minHeight: `calc(100vh - ${theme.appShell.headerHeightMd})`,
35
31
  },
36
32
  [theme.breakpoints.up('lg')]: {
37
33
  padding: `${theme.spacings.lg} ${theme.spacings.lg}`,
@@ -48,7 +44,7 @@ const useStyles = makeStyles(
48
44
  display: 'grid',
49
45
  justifyItems: 'center',
50
46
  overflow: 'hidden',
51
- paddingBottom: theme.spacings.md,
47
+ paddingBottom: theme.page.horizontal,
52
48
  '& video': {
53
49
  objectFit: 'cover',
54
50
  width: '100%',
@@ -80,7 +76,7 @@ export default function HeroBanner(props: HeroBannerProps) {
80
76
  const { pageLinks, videoSrc, children, ...containerProps } = props
81
77
  const classes = useStyles(props)
82
78
  const theme = useTheme()
83
- const { scrollY } = useViewportScroll()
79
+ const scrollY = useScrollY()
84
80
  const width = useTransform(
85
81
  scrollY,
86
82
  [10, 150],
@@ -2,7 +2,7 @@ import { makeStyles, Theme, Typography } from '@material-ui/core'
2
2
  import React from 'react'
3
3
  import Row from '..'
4
4
  import { UseStyles } from '../../Styles'
5
- import responsiveVal from '../../Styles/responsiveVal'
5
+ import { responsiveVal } from '../../Styles/responsiveVal'
6
6
 
7
7
  const useStyles = makeStyles(
8
8
  (theme: Theme) => ({
@@ -1,8 +1,8 @@
1
1
  import { makeStyles, Theme } from '@material-ui/core'
2
2
  import React from 'react'
3
3
  import Row from '..'
4
- import { responsiveVal } from '../..'
5
4
  import { UseStyles } from '../../Styles'
5
+ import { responsiveVal } from '../../Styles/responsiveVal'
6
6
 
7
7
  const useStyles = makeStyles(
8
8
  (theme: Theme) => ({
@@ -2,7 +2,7 @@ import { makeStyles, Theme } from '@material-ui/core'
2
2
  import React from 'react'
3
3
  import Row from '..'
4
4
  import { UseStyles } from '../../Styles'
5
- import responsiveVal from '../../Styles/responsiveVal'
5
+ import { responsiveVal } from '../../Styles/responsiveVal'
6
6
 
7
7
  const useStyles = makeStyles(
8
8
  (theme: Theme) => ({
@@ -1,7 +1,7 @@
1
1
  import { ContainerProps, makeStyles, Theme } from '@material-ui/core'
2
2
  import Row from '..'
3
- import { responsiveVal } from '../..'
4
3
  import { UseStyles } from '../../Styles'
4
+ import { responsiveVal } from '../../Styles/responsiveVal'
5
5
 
6
6
  const useStyles = makeStyles(
7
7
  (theme: Theme) => ({
@@ -1,10 +1,11 @@
1
1
  import { ContainerProps, makeStyles, Theme, Typography } from '@material-ui/core'
2
2
  import Row from '..'
3
3
  import { UseStyles } from '../../Styles'
4
- import responsiveVal from '../../Styles/responsiveVal'
4
+ import { responsiveVal } from '../../Styles/responsiveVal'
5
5
 
6
6
  const useStyles = makeStyles(
7
7
  (theme: Theme) => ({
8
+ root: {},
8
9
  wrapper: {
9
10
  display: 'grid',
10
11
  background: theme.palette.background.paper,
@@ -90,10 +91,10 @@ export type SpecialBannerProps = UseStyles<typeof useStyles> &
90
91
 
91
92
  export default function SpecialBanner(props: SpecialBannerProps) {
92
93
  const { asset, topic, pageLinks, children, ...containerProps } = props
93
- const classes = useStyles(props)
94
+ const { root, ...classes } = useStyles(props)
94
95
 
95
96
  return (
96
- <Row maxWidth={false} {...containerProps}>
97
+ <Row maxWidth={false} {...containerProps} classes={{ root }}>
97
98
  <Row maxWidth={false} className={classes.wrapper} disableGutters>
98
99
  <div className={classes.asset}>{asset}</div>
99
100
  <div className={classes.copy}>
package/Row/index.tsx CHANGED
@@ -2,7 +2,7 @@ import { Container, styled } from '@material-ui/core'
2
2
 
3
3
  const Row = styled(Container)(
4
4
  ({ theme }) => ({
5
- marginBottom: theme.spacings.xl,
5
+ marginBottom: theme.spacings.xxl,
6
6
  }),
7
7
  { name: 'Row' },
8
8
  )
@@ -141,7 +141,7 @@ export default function MessageSnackbarImpl(props: MessageSnackbarImplProps) {
141
141
  }
142
142
 
143
143
  let icon = iconCheckmark
144
- if (severity == 'error') icon = iconSadFace
144
+ if (severity === 'error') icon = iconSadFace
145
145
 
146
146
  return (
147
147
  <Portal>
@@ -1,13 +1,12 @@
1
+ import { makeStyles, Theme } from '@material-ui/core'
1
2
  import { Rating, RatingProps } from '@material-ui/lab'
2
3
  import React from 'react'
3
- import { SvgImageSimple } from '..'
4
+ import SvgImageSimple from '../SvgImage/SvgImageSimple'
4
5
  import { iconStar } from '../icons'
5
- import { makeStyles, Theme } from '@material-ui/core'
6
6
 
7
7
  export type StarRatingFieldProps = {
8
8
  id?: string
9
9
  onChange?: (id: string, value: number) => void
10
- iconSize?: number
11
10
  } & Omit<RatingProps, 'id' | 'onChange'>
12
11
 
13
12
  const useStyles = makeStyles(
@@ -29,7 +28,7 @@ const useStyles = makeStyles(
29
28
  )
30
29
 
31
30
  export default function StarRatingField(props: StarRatingFieldProps) {
32
- const { id, onChange = () => {}, iconSize = 20, ...ratingProps } = props
31
+ const { id, onChange = () => {}, ...ratingProps } = props
33
32
  const classes = useStyles(props)
34
33
 
35
34
  return (
@@ -2,7 +2,7 @@ import { makeStyles, Theme } from '@material-ui/core'
2
2
  import clsx from 'clsx'
3
3
  import React from 'react'
4
4
  import { UseStyles } from '../Styles'
5
- import responsiveVal from '../Styles/responsiveVal'
5
+ import { responsiveVal } from '../Styles/responsiveVal'
6
6
 
7
7
  const useStyles = makeStyles(
8
8
  (theme: Theme) => ({
@@ -1,8 +1,8 @@
1
- export default function breakpointVal(
1
+ export function breakpointVal(
2
2
  property: string,
3
3
  min: number,
4
4
  max: number,
5
- breakpointsObject: object,
5
+ breakpointsObject: Record<string, number>,
6
6
  ) {
7
7
  const minSize = 320
8
8
  const breakpoints = Object.values(breakpointsObject)
@@ -0,0 +1,41 @@
1
+ import { capitalize } from '@material-ui/core'
2
+ import clsx from 'clsx'
3
+
4
+ /**
5
+ * This will pick classNames from the classes object based on the given value object.sf
6
+ *
7
+ * Example:
8
+ *
9
+ * ```tsx
10
+ * const classes = makeStyles({
11
+ * root: {},
12
+ * rootColorRed: { color: 'red' }
13
+ * rootFloating: { display: 'inline-block' }
14
+ * })
15
+ *
16
+ * function MyComponent() {
17
+ * const classes = useStyles(props)
18
+ * const classNames = pickClasses(classes, { color: 'red', floating: true })
19
+ *
20
+ * return <div {...className('root')}>Hello</div>
21
+ * }
22
+ * ```
23
+ */
24
+ export function classesPicker<K extends string>(
25
+ classes: Record<string, string>,
26
+ values: Record<string, boolean | string | undefined>,
27
+ ) {
28
+ return (className: K, addClassName?: string) => {
29
+ const mapped: Record<string, string> = Object.fromEntries(
30
+ Object.entries(values)
31
+ .map(([key, value]) =>
32
+ typeof value === 'boolean' || typeof value === 'undefined'
33
+ ? [classes[`${className}${capitalize(key)}`], !!value]
34
+ : [classes[`${className}${capitalize(key)}${capitalize(value)}`], true],
35
+ )
36
+ .filter((v) => !!v[0] && v[1]),
37
+ )
38
+
39
+ return { className: clsx(classes[className], mapped, addClassName) }
40
+ }
41
+ }
@@ -3,7 +3,7 @@
3
3
  *
4
4
  * E.g.: `responsiveVal(16, 22)` -> Will render 16px at 320px window width, 22 ad 1280 window width
5
5
  */
6
- export default function responsiveVal(
6
+ export function responsiveVal(
7
7
  min: number,
8
8
  max: number,
9
9
  maxBreakpoint = 1280,
@@ -1,13 +1,13 @@
1
- import { Image, ImageProps, isStaticImport, isStaticRequire } from '@graphcommerce/image'
2
- import { makeStyles, capitalize, Theme } from '@material-ui/core'
1
+ import { ImageProps, isStaticImport, isStaticRequire } from '@graphcommerce/image'
2
+ import { makeStyles, capitalize } from '@material-ui/core'
3
3
  import clsx from 'clsx'
4
4
  import { forwardRef } from 'react'
5
- import responsiveVal from '../Styles/responsiveVal'
5
+ import { responsiveVal } from '../Styles/responsiveVal'
6
6
 
7
7
  export type SvgImageShade = 'muted' | 'default' | 'inverted'
8
8
 
9
9
  const useStyles = makeStyles(
10
- (theme: Theme) => ({
10
+ {
11
11
  image: {
12
12
  userSelect: 'none',
13
13
  width: responsiveVal(22, 24),
@@ -48,7 +48,7 @@ const useStyles = makeStyles(
48
48
  },
49
49
  muted: {},
50
50
  inverted: {},
51
- }),
51
+ },
52
52
  { name: 'SvgImageSimple' },
53
53
  )
54
54
 
@@ -60,7 +60,7 @@ type SvgImageSimpleProps = Omit<ImageProps, 'fixed'> & {
60
60
  inverted?: boolean
61
61
  }
62
62
 
63
- const SvgImageSimple = forwardRef<HTMLImageElement, SvgImageSimpleProps>((props, ref) => {
63
+ const SvgImageSimple = forwardRef<SVGSVGElement, SvgImageSimpleProps>((props, ref) => {
64
64
  const {
65
65
  style,
66
66
  className,
@@ -73,13 +73,14 @@ const SvgImageSimple = forwardRef<HTMLImageElement, SvgImageSimpleProps>((props,
73
73
  } = props
74
74
  const classes = useStyles()
75
75
 
76
- let src = imageProps.src
76
+ let { src } = imageProps
77
77
  let staticSrc = ''
78
78
  if (isStaticImport(src)) staticSrc = (isStaticRequire(src) ? src.default : src).src
79
79
  src = typeof src === 'string' ? src : staticSrc
80
80
 
81
81
  return (
82
82
  <svg
83
+ ref={ref}
83
84
  className={clsx(
84
85
  className,
85
86
  classes.image,
@@ -90,7 +91,7 @@ const SvgImageSimple = forwardRef<HTMLImageElement, SvgImageSimpleProps>((props,
90
91
  aria-hidden='true'
91
92
  style={style}
92
93
  >
93
- <use href={`${src}#icon`}></use>
94
+ <use href={`${src}#icon`} />
94
95
  </svg>
95
96
  )
96
97
  })
@@ -61,16 +61,14 @@ export default function SvgImage(props: SvgImageProps) {
61
61
  })
62
62
 
63
63
  return (
64
- <>
65
- <Image
66
- layout='fixed'
67
- unoptimized
68
- src={src}
69
- className={classes.root}
70
- // height={24}
71
- // width={24}
72
- {...imageProps}
73
- />
74
- </>
64
+ <Image
65
+ layout='fixed'
66
+ unoptimized
67
+ src={src}
68
+ className={classes.root}
69
+ // height={24}
70
+ // width={24}
71
+ {...imageProps}
72
+ />
75
73
  )
76
74
  }
@@ -5,18 +5,17 @@ import {
5
5
  OutlinedTextFieldProps,
6
6
  TextField,
7
7
  TextFieldProps,
8
- Theme,
9
8
  useForkRef,
10
9
  } from '@material-ui/core'
11
10
  import clsx from 'clsx'
12
11
  import React, { ChangeEvent, Ref, useCallback, useEffect, useRef, useState } from 'react'
13
12
  import { UseStyles } from '../Styles'
14
- import responsiveVal from '../Styles/responsiveVal'
13
+ import { responsiveVal } from '../Styles/responsiveVal'
15
14
  import SvgImageSimple from '../SvgImage/SvgImageSimple'
16
15
  import { iconMin, iconPlus } from '../icons'
17
16
 
18
17
  const useStyles = makeStyles(
19
- (theme: Theme) => ({
18
+ {
20
19
  quantity: {
21
20
  width: responsiveVal(80, 120),
22
21
  backgroundColor: 'inherit',
@@ -34,7 +33,7 @@ const useStyles = makeStyles(
34
33
  adornedStart: {
35
34
  paddingLeft: responsiveVal(7, 14),
36
35
  },
37
- }),
36
+ },
38
37
  { name: 'TextInputNumber' },
39
38
  )
40
39
 
package/Theme/types.ts CHANGED
@@ -7,7 +7,7 @@ declare module '@material-ui/core/styles/createPalette' {
7
7
  }
8
8
 
9
9
  declare module '@material-ui/core/styles/createTheme' {
10
- interface Theme {
10
+ interface ThemeOptions {
11
11
  spacings: {
12
12
  xxs: string
13
13
  xs: string
@@ -20,14 +20,15 @@ declare module '@material-ui/core/styles/createTheme' {
20
20
  page: {
21
21
  horizontal: string
22
22
  vertical: string
23
- headerInnerHeight: {
24
- xs: string
25
- sm: string
26
- md: string
27
- }
23
+ }
24
+ appShell: {
25
+ headerHeightSm: string
26
+ headerHeightMd: string
27
+ appBarHeightMd: string
28
+ appBarInnerHeightMd: string
28
29
  }
29
30
  }
30
- interface ThemeOptions {
31
+ interface Theme {
31
32
  spacings: {
32
33
  xxs: string
33
34
  xs: string
@@ -40,11 +41,12 @@ declare module '@material-ui/core/styles/createTheme' {
40
41
  page: {
41
42
  horizontal: string | number
42
43
  vertical: string | number
43
- headerInnerHeight: {
44
- xs: string
45
- sm: string
46
- md: string
47
- }
44
+ }
45
+ appShell: {
46
+ headerHeightSm: string
47
+ headerHeightMd: string
48
+ appBarHeightMd: string
49
+ appBarInnerHeightMd: string
48
50
  }
49
51
  }
50
52
  }
@@ -1,11 +1,9 @@
1
- // @inheritedComponent ButtonBase
2
-
3
- import { capitalize, lighten, makeStyles, Theme } from '@material-ui/core'
1
+ import { makeStyles, Theme } from '@material-ui/core'
4
2
  import clsx from 'clsx'
5
3
  import React, { FormEvent } from 'react'
6
- import { responsiveVal } from '..'
7
4
  import Button, { ButtonProps } from '../Button'
8
5
  import { UseStyles } from '../Styles'
6
+ import { responsiveVal } from '../Styles/responsiveVal'
9
7
 
10
8
  type StyleProps = { selected?: boolean; color?: ButtonProps['color'] }
11
9
 
@@ -1,8 +1,8 @@
1
1
  import { makeStyles, Theme } from '@material-ui/core'
2
2
  import clsx from 'clsx'
3
3
  import React from 'react'
4
- import { responsiveVal } from '..'
5
4
  import { UseStyles } from '../Styles'
5
+ import { responsiveVal } from '../Styles/responsiveVal'
6
6
 
7
7
  const useStyles = makeStyles(
8
8
  (theme: Theme) => ({
package/index.ts CHANGED
@@ -1,42 +1,15 @@
1
+ export * from './AppShell'
2
+ export * from './Layout'
3
+ export * from './LayoutDefault'
4
+ export * from './LayoutOverlay'
5
+ export * from './Footer'
6
+
1
7
  export * from './AnimatedRow'
2
8
  export { default as AnimatedRow } from './AnimatedRow'
3
9
  export * from './ApolloError/ApolloErrorAlert'
4
10
  export { default as ApolloErrorAlert } from './ApolloError/ApolloErrorAlert'
5
11
  export * from './ApolloError/ApolloErrorFullPage'
6
12
  export { default as ApolloErrorFullPage } from './ApolloError/ApolloErrorFullPage'
7
- export * from './AppShell/AppShellHeader'
8
- export { default as AppShellHeader } from './AppShell/AppShellHeader'
9
- export { default as AppShellProvider } from './AppShell/AppShellProvider'
10
- export { default as AppShellSticky } from './AppShell/AppShellSticky'
11
- export { default as AppShellTitle } from './AppShell/AppShellTitle'
12
- export { default as DesktopNavActions } from './AppShell/DesktopNavActions'
13
- export * from './AppShell/DesktopNavBar'
14
- export { default as DesktopNavBar } from './AppShell/DesktopNavBar'
15
- export { default as FixedFab } from './AppShell/FixedFab'
16
- export * from './AppShell/ForwardButton'
17
- export { default as ForwardButton } from './AppShell/ForwardButton'
18
- export * from './AppShell/FullPageShellBase'
19
- export { default as Logo } from './AppShell/Logo'
20
- export * from './AppShell/Logo'
21
- export { default as FullPageShellBase } from './AppShell/FullPageShellBase'
22
- export * from './AppShell/Menu'
23
- export * from './AppShell/MenuFab'
24
- export { default as MenuFab } from './AppShell/MenuFab'
25
- export * from './AppShell/MenuFabSecondaryItem'
26
- export { default as Footer } from './AppShell/Footer'
27
- export { default as MenuFabSecondaryItem } from './AppShell/MenuFabSecondaryItem'
28
- export { default as SocialIcon } from './AppShell/Footer/SocialIcon'
29
- export * from './AppShell/PageShellHeader'
30
- export { default as PlaceholderFab } from './AppShell/PlaceholderFab'
31
- export { default as PageShellHeader } from './AppShell/PageShellHeader'
32
- export * from './AppShell/SheetShellBase'
33
- export { default as SheetShellBase } from './AppShell/SheetShellBase'
34
- export { default as SheetShellDragIndicator } from './AppShell/SheetShellDragIndicator'
35
- export { default as SheetShellHeader } from './AppShell/SheetShellHeader'
36
- export * from './AppShell/ShellBase'
37
- export { default as ShellBase } from './AppShell/ShellBase'
38
- export { default as useFabAnimation } from './AppShell/useFabAnimation'
39
- export { default as useFixedFabAnimation } from './AppShell/useFixedFabAnimation'
40
13
  export * from './AspectRatioContainer'
41
14
  export { default as AspectRationContainer } from './AspectRatioContainer'
42
15
  export * from './Blog/BlogContent'
@@ -45,7 +18,6 @@ export * from './Blog/BlogHeader'
45
18
  export { default as BlogHeader } from './Blog/BlogHeader'
46
19
  export * from './Blog/BlogTitle'
47
20
  export { default as BlogTitle } from './Blog/BlogTitle'
48
- export * from './Blog/BlogTags'
49
21
  export { default as BlogTags } from './Blog/BlogTags'
50
22
  export * from './Blog/BlogAuthor'
51
23
  export { default as BlogAuthor } from './Blog/BlogAuthor'
@@ -61,8 +33,6 @@ export * from './ChipMenu'
61
33
  export { default as ChipMenu } from './ChipMenu'
62
34
  export * from './ContainerWithHeader'
63
35
  export { default as ContainerWithHeader } from './ContainerWithHeader'
64
- export * from './Debug/DebugSpacer'
65
- export { default as DebugSpacer } from './Debug/DebugSpacer'
66
36
  export * from './FlagAvatar'
67
37
  export { default as FlagAvatar } from './FlagAvatar'
68
38
  export * from './Form'
@@ -73,10 +43,6 @@ export { default as FormHeader } from './Form/FormHeader'
73
43
  export { default as FormRow } from './Form/FormRow'
74
44
  export * from './Form/InputCheckmark'
75
45
  export { default as InputCheckmark } from './Form/InputCheckmark'
76
- export * from './FramerNextPagesSlider/Slide'
77
- export { default as Slide } from './FramerNextPagesSlider/Slide'
78
- export * from './FramerNextPagesSlider/Slider'
79
- export { default as Slider } from './FramerNextPagesSlider/Slider'
80
46
  export * from './FramerScroller/components/SidebarGallery'
81
47
  export { default as SidebarGallery } from './FramerScroller/components/SidebarGallery'
82
48
  export * from './FramerScroller/components/SidebarSlider'
@@ -145,8 +111,9 @@ export * from './Stepper/Stepper'
145
111
  export { default as Stepper } from './Stepper/Stepper'
146
112
  export { default as StyledBadge } from './StyledBadge'
147
113
  export * from './Styles'
148
- export { default as responsiveVal } from './Styles/responsiveVal'
149
- export { default as breakpointVal } from './Styles/breakpointVal'
114
+ export * from './Styles/breakpointVal'
115
+ export * from './Styles/responsiveVal'
116
+ export * from './Styles/classesPicker'
150
117
  export * from './SvgImage'
151
118
  export { default as SvgImage } from './SvgImage'
152
119
  export { default as SvgImageSimple } from './SvgImage/SvgImageSimple'
@@ -154,7 +121,6 @@ export * from './TextInputNumber'
154
121
  export { default as TextInputNumber } from './TextInputNumber'
155
122
  export * from './TimeAgo'
156
123
  export { default as TimeAgo } from './TimeAgo'
157
- export { default as Title } from './Title'
158
124
  export { default as ToggleButton } from './ToggleButton'
159
125
  export type { ToggleButtonProps } from './ToggleButton'
160
126
  export { default as ToggleButtonGroup } from './ToggleButtonGroup'
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@graphcommerce/next-ui",
3
- "version": "3.19.1",
3
+ "version": "3.20.0",
4
4
  "author": "",
5
5
  "license": "MIT",
6
6
  "scripts": {
@@ -10,12 +10,11 @@
10
10
  },
11
11
  "dependencies": {
12
12
  "@apollo/client": "^3.4.16",
13
- "@graphcommerce/framer-next-pages": "^2.107.5",
14
- "@graphcommerce/framer-scroller": "^1.0.4",
15
- "@graphcommerce/framer-sheet": "^2.106.2",
16
- "@graphcommerce/framer-utils": "^2.103.15",
17
- "@graphcommerce/graphql": "^2.105.5",
18
- "@graphcommerce/image": "^2.105.4",
13
+ "@graphcommerce/framer-next-pages": "^2.108.0",
14
+ "@graphcommerce/framer-scroller": "^1.1.0",
15
+ "@graphcommerce/framer-utils": "^2.103.16",
16
+ "@graphcommerce/graphql": "^2.105.6",
17
+ "@graphcommerce/image": "^2.105.5",
19
18
  "@lingui/macro": "^3.12.1",
20
19
  "@material-ui/core": "^4.12.3",
21
20
  "@material-ui/lab": "^4.0.0-alpha.60",
@@ -34,7 +33,7 @@
34
33
  },
35
34
  "devDependencies": {
36
35
  "@graphcommerce/browserslist-config-pwa": "^3.0.2",
37
- "@graphcommerce/eslint-config-pwa": "^3.1.5",
36
+ "@graphcommerce/eslint-config-pwa": "^3.1.6",
38
37
  "@graphcommerce/prettier-config-pwa": "^3.0.4",
39
38
  "@graphcommerce/typescript-config-pwa": "^3.1.1",
40
39
  "@playwright/test": "^1.16.2",
@@ -53,5 +52,5 @@
53
52
  "project": "./tsconfig.json"
54
53
  }
55
54
  },
56
- "gitHead": "a145ddd41ca83136c7a478e791a9e843b2aee15f"
55
+ "gitHead": "8f156415c7f5a963e363f0d6d18fe5d6bbd5dba2"
57
56
  }
@@ -1,11 +0,0 @@
1
- import React from 'react'
2
-
3
- export type AppShellHeaderContext = {
4
- titleRef: React.RefObject<HTMLDivElement>
5
- contentHeaderRef: React.RefObject<HTMLDivElement>
6
- }
7
-
8
- const appShellHeaderContext = React.createContext(undefined as unknown as AppShellHeaderContext)
9
- appShellHeaderContext.displayName = 'appShellHeaderContext'
10
-
11
- export default appShellHeaderContext