@graphcommerce/next-ui 3.6.0 → 3.7.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.
@@ -1,4 +1,4 @@
1
- import { makeStyles } from '@material-ui/styles'
1
+ import { makeStyles } from '@material-ui/core'
2
2
  import React from 'react'
3
3
  import { UseStyles } from '../Styles'
4
4
 
package/Button/index.tsx CHANGED
@@ -1,5 +1,9 @@
1
- import { Button as MuiButton, ButtonClassKey as MuiButtonClassKey, Theme } from '@material-ui/core'
2
- import { makeStyles } from '@material-ui/styles'
1
+ import {
2
+ Button as MuiButton,
3
+ ButtonClassKey as MuiButtonClassKey,
4
+ Theme,
5
+ makeStyles,
6
+ } from '@material-ui/core'
3
7
  import clsx from 'clsx'
4
8
  import React from 'react'
5
9
 
package/CHANGELOG.md CHANGED
@@ -3,6 +3,22 @@
3
3
  All notable changes to this project will be documented in this file.
4
4
  See [Conventional Commits](https://conventionalcommits.org) for commit guidelines.
5
5
 
6
+ # [3.7.0](https://github.com/ho-nl/m2-pwa/compare/@graphcommerce/next-ui@3.6.0...@graphcommerce/next-ui@3.7.0) (2021-10-19)
7
+
8
+
9
+ ### Bug Fixes
10
+
11
+ * solve import issue where @material-ui/styles couldn't be found ([efb3771](https://github.com/ho-nl/m2-pwa/commit/efb3771e8c173799779691d4d52857678dab4c15))
12
+
13
+
14
+ ### Features
15
+
16
+ * **framer-scroller:** better defaults so the Scroller doesn't look broken when providing no props ([b177ce9](https://github.com/ho-nl/m2-pwa/commit/b177ce9570abb9ccfd4eb5cc34e43d157bb4e81a))
17
+
18
+
19
+
20
+
21
+
6
22
  # [3.6.0](https://github.com/ho-nl/m2-pwa/compare/@graphcommerce/next-ui@3.5.0...@graphcommerce/next-ui@3.6.0) (2021-10-18)
7
23
 
8
24
 
@@ -1,5 +1,5 @@
1
1
  import { usePageContext, usePageRouter } from '@graphcommerce/framer-next-pages'
2
- import { makeStyles } from '@material-ui/styles'
2
+ import { makeStyles } from '@material-ui/core'
3
3
  import { AnimatePresence } from 'framer-motion'
4
4
  import React, { useRef } from 'react'
5
5
  import RouterSlide from './Slide'
@@ -73,9 +73,7 @@ const useStyles = makeStyles(
73
73
  top: 0,
74
74
  width: '100%',
75
75
  height: '100%',
76
- display: `grid`,
77
- gridAutoFlow: `column`,
78
- gridTemplateColumns: `repeat(100, 100%)`,
76
+ gridAutoColumns: `100%`,
79
77
  gridTemplateRows: `100%`,
80
78
  cursor: 'zoom-in',
81
79
  },
@@ -4,8 +4,7 @@ import {
4
4
  ScrollerPageCounter,
5
5
  ScrollerProvider,
6
6
  } from '@graphcommerce/framer-scroller'
7
- import { Theme } from '@material-ui/core'
8
- import { makeStyles } from '@material-ui/styles'
7
+ import { Theme, makeStyles } from '@material-ui/core'
9
8
  import React, { ReactNode } from 'react'
10
9
  import { UseStyles } from '../../Styles'
11
10
  import responsiveVal from '../../Styles/responsiveVal'
@@ -31,15 +30,11 @@ const useStyles = makeStyles(
31
30
  },
32
31
  scroller: {
33
32
  width: '100%',
34
- display: 'grid',
35
- gridAutoFlow: 'column',
36
33
  gridColumnGap: theme.spacings.md,
37
34
  gridRowGap: theme.spacings.lg,
38
35
  alignContent: 'space-around',
39
36
  paddingRight: theme.page.horizontal,
40
- '& > *': {
41
- minWidth: responsiveVal(200, 400),
42
- },
37
+ gridAutoColumns: responsiveVal(200, 400),
43
38
  },
44
39
  sliderButtons: {
45
40
  [theme.breakpoints.down('sm')]: {
@@ -1,5 +1,4 @@
1
- import { Theme } from '@material-ui/core'
2
- import { makeStyles } from '@material-ui/styles'
1
+ import { Theme, makeStyles } from '@material-ui/core'
3
2
  import React from 'react'
4
3
  import Row from '..'
5
4
  import SectionContainer from '../../SectionContainer'
@@ -8,14 +8,10 @@ const useStyles = makeStyles(
8
8
  root: {},
9
9
  scroller: {
10
10
  marginBottom: `${theme.spacings.lg}`,
11
- display: 'grid',
12
- gridAutoFlow: 'column',
13
11
  justifyContent: 'start',
14
12
  gap: `${theme.spacings.md}`,
15
13
  alignContent: 'center',
16
- '& > *': {
17
- minWidth: 'max-content',
18
- },
14
+ gridAutoColumns: `max-content`,
19
15
  },
20
16
  title: {
21
17
  fontWeight: 600,
@@ -1,5 +1,4 @@
1
- import { ContainerProps, Theme } from '@material-ui/core'
2
- import { makeStyles } from '@material-ui/styles'
1
+ import { ContainerProps, Theme, makeStyles } from '@material-ui/core'
3
2
  import { m, useTransform, useViewportScroll } from 'framer-motion'
4
3
  import React from 'react'
5
4
  import Row from '..'
@@ -1,5 +1,4 @@
1
- import { Badge } from '@material-ui/core'
2
- import { withStyles } from '@material-ui/styles'
1
+ import { Badge, withStyles } from '@material-ui/core'
3
2
 
4
3
  const StyledBadge = withStyles((theme) => ({
5
4
  colorError: {},
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@graphcommerce/next-ui",
3
- "version": "3.6.0",
3
+ "version": "3.7.0",
4
4
  "author": "",
5
5
  "license": "MIT",
6
6
  "scripts": {
@@ -11,7 +11,7 @@
11
11
  "dependencies": {
12
12
  "@apollo/client": "^3.4.16",
13
13
  "@graphcommerce/framer-next-pages": "^2.106.9",
14
- "@graphcommerce/framer-scroller": "^0.2.11",
14
+ "@graphcommerce/framer-scroller": "^0.3.0",
15
15
  "@graphcommerce/framer-sheet": "^2.105.9",
16
16
  "@graphcommerce/framer-utils": "^2.103.8",
17
17
  "@graphcommerce/graphql": "^2.103.7",
@@ -55,5 +55,5 @@
55
55
  "project": "./tsconfig.json"
56
56
  }
57
57
  },
58
- "gitHead": "beb4b83268176f7c6579cee2fe844752315e2378"
58
+ "gitHead": "a7749d81f482a77bc6bcbf237aca551ed3b7a835"
59
59
  }