@graphcommerce/next-ui 3.0.1 → 3.0.5

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,5 +1,5 @@
1
- import { Fab, makeStyles, Theme } from '@material-ui/core'
2
1
  import { useHistoryLink, usePageContext, usePageRouter } from '@graphcommerce/framer-next-pages'
2
+ import { Fab, makeStyles, Theme } from '@material-ui/core'
3
3
  import clsx from 'clsx'
4
4
  import { m, MotionValue, useMotionValue, useTransform } from 'framer-motion'
5
5
  import PageLink from 'next/link'
@@ -1,5 +1,5 @@
1
- import { Link, makeStyles, Theme } from '@material-ui/core'
2
1
  import { Scroller, ScrollerButton, ScrollerProvider } from '@graphcommerce/framer-scroller'
2
+ import { Link, makeStyles, Theme } from '@material-ui/core'
3
3
  import clsx from 'clsx'
4
4
  import PageLink from 'next/link'
5
5
  import { useRouter } from 'next/router'
@@ -1,14 +1,15 @@
1
- import { makeStyles, Theme } from '@material-ui/core'
2
1
  import { usePageContext, usePageRouter } from '@graphcommerce/framer-next-pages'
3
2
  import {
3
+ ClassKeys,
4
4
  Sheet,
5
5
  SheetBackdrop,
6
6
  SheetContainer,
7
7
  SheetPanel,
8
8
  SheetProps,
9
9
  SnapPoint,
10
- styles,
10
+ styles as sheetStyles,
11
11
  } from '@graphcommerce/framer-sheet'
12
+ import { makeStyles, StyleRules, Theme } from '@material-ui/core'
12
13
  import { useDomEvent } from 'framer-motion'
13
14
  import { useRouter } from 'next/router'
14
15
  import React, { useRef } from 'react'
@@ -23,6 +24,8 @@ export type SheetShellBaseProps = {
23
24
  } & Pick<SheetProps, 'size' | 'variant'> &
24
25
  PageLayoutBaseProps
25
26
 
27
+ const styles = sheetStyles as StyleRules<ClassKeys>
28
+
26
29
  const useStyles = makeStyles(
27
30
  (theme: Theme) => ({
28
31
  container: {
@@ -1,6 +1,6 @@
1
+ import styles, { ClassKeys } from '@graphcommerce/framer-sheet/styles'
1
2
  import { makeStyles, StyleRules, Theme } from '@material-ui/core'
2
3
  import { ClassNameMap } from '@material-ui/styles'
3
- import styles, { ClassKeys } from '@graphcommerce/framer-sheet/styles'
4
4
 
5
5
  type UseSheetStylesReturn = (props?: Record<string, unknown>) => ClassNameMap<ClassKeys>
6
6
 
@@ -1,8 +1,15 @@
1
- import { makeStyles } from '@material-ui/core'
2
- import { SheetDragIndicator, SheetDragIndicatorProps, styles } from '@graphcommerce/framer-sheet'
1
+ import {
2
+ SheetDragIndicator,
3
+ SheetDragIndicatorProps,
4
+ styles as sheetStyles,
5
+ ClassKeys,
6
+ } from '@graphcommerce/framer-sheet'
7
+ import { makeStyles, StyleRules } from '@material-ui/core'
3
8
  import React from 'react'
4
9
  import responsiveVal from '../../Styles/responsiveVal'
5
10
 
11
+ const styles = sheetStyles as StyleRules<ClassKeys>
12
+
6
13
  const useStyles = makeStyles(
7
14
  () => ({
8
15
  indicatorRoot: {
@@ -1,10 +1,10 @@
1
1
  import { Chip, ChipProps, makeStyles, Menu, Theme } from '@material-ui/core'
2
2
  import clsx from 'clsx'
3
3
  import React, { PropsWithChildren, useState } from 'react'
4
- import { iconChevronDown, iconChevronUp, iconCloseCircle } from '../icons'
5
4
  import SectionHeader from '../SectionHeader'
6
5
  import responsiveVal from '../Styles/responsiveVal'
7
6
  import SvgImage from '../SvgImage'
7
+ import { iconChevronDown, iconChevronUp, iconCloseCircle } from '../icons'
8
8
 
9
9
  export const useChipMenuStyles = makeStyles(
10
10
  (theme: Theme) => ({
@@ -1,6 +1,6 @@
1
- import { makeStyles } from '@material-ui/core'
2
1
  import { usePageContext, usePageRouter } from '@graphcommerce/framer-next-pages'
3
2
  import { SPRING_ANIM } from '@graphcommerce/framer-sheet'
3
+ import { makeStyles } from '@material-ui/core'
4
4
  import { m, motionValue, useElementScroll } from 'framer-motion'
5
5
  import React, { useEffect, useRef } from 'react'
6
6
  import { ScrollPositions } from './types'
@@ -1,5 +1,5 @@
1
- import { makeStyles } from '@material-ui/styles'
2
1
  import { usePageContext, usePageRouter } from '@graphcommerce/framer-next-pages'
2
+ import { makeStyles } from '@material-ui/styles'
3
3
  import { AnimatePresence } from 'framer-motion'
4
4
  import React, { useRef } from 'react'
5
5
  import RouterSlide from './Slide'
@@ -1,4 +1,3 @@
1
- import { Fab, makeStyles, Theme, useTheme } from '@material-ui/core'
2
1
  import {
3
2
  ScrollerButton,
4
3
  ScrollerDots,
@@ -9,6 +8,7 @@ import {
9
8
  MotionImageAspect,
10
9
  } from '@graphcommerce/framer-scroller'
11
10
  import { clientSize, useMotionValueValue } from '@graphcommerce/framer-utils'
11
+ import { Fab, makeStyles, Theme, useTheme } from '@material-ui/core'
12
12
  import clsx from 'clsx'
13
13
  import { m } from 'framer-motion'
14
14
  import React, { useState } from 'react'
@@ -1,12 +1,12 @@
1
1
  import { relative } from 'path/posix'
2
- import { Theme } from '@material-ui/core'
3
- import { makeStyles } from '@material-ui/styles'
4
2
  import {
5
3
  Scroller,
6
4
  ScrollerButton,
7
5
  ScrollerPageCounter,
8
6
  ScrollerProvider,
9
7
  } from '@graphcommerce/framer-scroller'
8
+ import { Theme } from '@material-ui/core'
9
+ import { makeStyles } from '@material-ui/styles'
10
10
  import React, { ReactNode } from 'react'
11
11
  import { SvgImageSimple, iconChevronLeft, iconChevronRight } from '../..'
12
12
  import { UseStyles } from '../../Styles'
@@ -1,5 +1,5 @@
1
- import { Container, makeStyles, Theme, Typography } from '@material-ui/core'
2
1
  import { Scroller, ScrollerProvider } from '@graphcommerce/framer-scroller'
2
+ import { Container, makeStyles, Theme, Typography } from '@material-ui/core'
3
3
  import React from 'react'
4
4
  import { UseStyles } from '../../Styles'
5
5
 
@@ -1,5 +1,5 @@
1
- import { makeStyles, capitalize, Theme } from '@material-ui/core'
2
1
  import { Image, ImageProps } from '@graphcommerce/image'
2
+ import { makeStyles, capitalize, Theme } from '@material-ui/core'
3
3
  import clsx from 'clsx'
4
4
  import { forwardRef } from 'react'
5
5
  import responsiveVal from '../Styles/responsiveVal'
@@ -1,5 +1,5 @@
1
- import { makeStyles, Theme } from '@material-ui/core'
2
1
  import { Image, ImageProps } from '@graphcommerce/image'
2
+ import { makeStyles, Theme } from '@material-ui/core'
3
3
  import React from 'react'
4
4
  import { UseStyles } from '../Styles'
5
5
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@graphcommerce/next-ui",
3
- "version": "3.0.1",
3
+ "version": "3.0.5",
4
4
  "author": "",
5
5
  "license": "MIT",
6
6
  "scripts": {
@@ -10,19 +10,19 @@
10
10
  },
11
11
  "dependencies": {
12
12
  "@apollo/client": "^3.3.21",
13
- "@graphcommerce/framer-next-pages": "^2.106.1",
14
- "@graphcommerce/framer-scroller": "^0.2.1",
15
- "@graphcommerce/framer-sheet": "^2.105.1",
16
- "@graphcommerce/framer-utils": "^2.103.1",
17
- "@graphcommerce/graphql": "^2.103.1",
18
- "@graphcommerce/image": "^2.104.1",
13
+ "@graphcommerce/framer-next-pages": "^2.106.4",
14
+ "@graphcommerce/framer-scroller": "^0.2.4",
15
+ "@graphcommerce/framer-sheet": "^2.105.3",
16
+ "@graphcommerce/framer-utils": "^2.103.3",
17
+ "@graphcommerce/graphql": "^2.103.3",
18
+ "@graphcommerce/image": "^2.104.4",
19
19
  "@graphql-typed-document-node/core": "^3.1.0",
20
20
  "@material-ui/core": "^4.12.3",
21
21
  "@material-ui/lab": "^4.0.0-alpha.60",
22
22
  "@material-ui/styles": "^4.11.4",
23
23
  "clsx": "^1.1.1",
24
24
  "framer-motion": "^4.1.17",
25
- "graphql": "^15.5.2",
25
+ "graphql": "^15.6.0",
26
26
  "next": "^11.1.2",
27
27
  "node-fetch": "^3.0.0",
28
28
  "react": "^17.0.2",
@@ -31,21 +31,19 @@
31
31
  "react-is": "^17.0.2",
32
32
  "react-schemaorg": "^2.0.0",
33
33
  "schema-dts": "^1.0.0",
34
- "sharp": "^0.29.0",
35
- "type-fest": "^2.1.0"
34
+ "type-fest": "^2.3.4"
36
35
  },
37
36
  "devDependencies": {
38
37
  "@graphcommerce/browserslist-config-pwa": "^3.0.1",
39
- "@graphcommerce/eslint-config-pwa": "^3.0.1",
40
- "@graphcommerce/prettier-config-pwa": "^3.0.1",
41
- "@graphcommerce/typescript-config-pwa": "^3.0.1",
42
- "@playwright/test": "^1.14.1",
43
- "@testing-library/react": "^12.0.0",
44
- "@types/react": "^17.0.19",
38
+ "@graphcommerce/eslint-config-pwa": "^3.0.3",
39
+ "@graphcommerce/prettier-config-pwa": "^3.0.2",
40
+ "@graphcommerce/typescript-config-pwa": "^3.1.0",
41
+ "@playwright/test": "^1.15.0",
42
+ "@types/react": "^17.0.24",
45
43
  "@types/react-dom": "^17.0.9",
46
44
  "@types/react-is": "^17.0.2",
47
45
  "graphql-tag": "2.12.5",
48
- "typescript": "^4.4.2"
46
+ "typescript": "^4.4.3"
49
47
  },
50
48
  "sideEffects": false,
51
49
  "prettier": "@graphcommerce/prettier-config-pwa",
@@ -57,5 +55,6 @@
57
55
  "parserOptions": {
58
56
  "project": "./tsconfig.json"
59
57
  }
60
- }
58
+ },
59
+ "gitHead": "1345d9b55763894d3cdedb5751895f2d3f89d1b4"
61
60
  }