@graphcommerce/next-ui 4.19.0 → 4.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.
|
@@ -4,7 +4,7 @@ import { ReactHTML } from 'react'
|
|
|
4
4
|
|
|
5
5
|
export type AnimatedRowProps = Omit<
|
|
6
6
|
ReactHTML['div'] & HTMLMotionProps<'div'>,
|
|
7
|
-
'
|
|
7
|
+
'initial' | 'animate' | 'exit' | 'transition'
|
|
8
8
|
> & { sx?: SxProps<Theme> }
|
|
9
9
|
|
|
10
10
|
const StyledDiv = styled(m.div)({})
|
|
@@ -13,8 +13,7 @@ export function AnimatedRow(props: AnimatedRowProps) {
|
|
|
13
13
|
return (
|
|
14
14
|
<StyledDiv
|
|
15
15
|
{...props}
|
|
16
|
-
|
|
17
|
-
initial={{ opacity: 0, height: 0 }}
|
|
16
|
+
initial={{ opacity: 0, height: 'auto' }}
|
|
18
17
|
animate={{ opacity: 1, height: 'auto' }}
|
|
19
18
|
exit={{ opacity: 0, height: 0 }}
|
|
20
19
|
transition={{ type: 'tween' }}
|
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,18 @@
|
|
|
1
1
|
# Change Log
|
|
2
2
|
|
|
3
|
+
## 4.20.0
|
|
4
|
+
|
|
5
|
+
### Minor Changes
|
|
6
|
+
|
|
7
|
+
- [#1592](https://github.com/graphcommerce-org/graphcommerce/pull/1592) [`43822fd61`](https://github.com/graphcommerce-org/graphcommerce/commit/43822fd61c949215b8ddce9fb37d09f29b638426) Thanks [@ErwinOtten](https://github.com/ErwinOtten)! - Animation fixes
|
|
8
|
+
|
|
9
|
+
* [#1596](https://github.com/graphcommerce-org/graphcommerce/pull/1596) [`3a619b70d`](https://github.com/graphcommerce-org/graphcommerce/commit/3a619b70d082804b8de46a8e8232f9431479a8b7) Thanks [@paales](https://github.com/paales)! - Create products sitemap
|
|
10
|
+
|
|
11
|
+
### Patch Changes
|
|
12
|
+
|
|
13
|
+
- Updated dependencies []:
|
|
14
|
+
- @graphcommerce/framer-scroller@2.1.31
|
|
15
|
+
|
|
3
16
|
## 4.19.0
|
|
4
17
|
|
|
5
18
|
### Minor Changes
|
|
@@ -151,10 +151,15 @@ export function OverlayBase(incommingProps: LayoutOverlayBaseProps) {
|
|
|
151
151
|
if (!scroller) return () => {}
|
|
152
152
|
|
|
153
153
|
const resize = () => {
|
|
154
|
-
if (positions.open.visible.get()
|
|
154
|
+
if (positions.open.visible.get() === 1) {
|
|
155
|
+
scroller.scrollLeft = positions.open.x.get()
|
|
156
|
+
scroller.scrollTop = positions.open.y.get()
|
|
157
|
+
}
|
|
155
158
|
|
|
156
|
-
|
|
157
|
-
|
|
159
|
+
if (positions.open.visible.get() === 0) {
|
|
160
|
+
scroller.scrollLeft = positions.closed.x.get()
|
|
161
|
+
scroller.scrollTop = positions.closed.y.get()
|
|
162
|
+
}
|
|
158
163
|
}
|
|
159
164
|
|
|
160
165
|
window.addEventListener('resize', resize)
|
|
@@ -370,7 +375,6 @@ export function OverlayBase(incommingProps: LayoutOverlayBaseProps) {
|
|
|
370
375
|
>
|
|
371
376
|
<MotionDiv
|
|
372
377
|
{...overlayPaneProps}
|
|
373
|
-
layout
|
|
374
378
|
className={classes.overlayPane}
|
|
375
379
|
sx={(theme) => ({
|
|
376
380
|
pointerEvents: 'all',
|
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": "4.
|
|
5
|
+
"version": "4.20.0",
|
|
6
6
|
"author": "",
|
|
7
7
|
"license": "MIT",
|
|
8
8
|
"sideEffects": false,
|
|
@@ -20,7 +20,7 @@
|
|
|
20
20
|
"@emotion/server": "^11.4.0",
|
|
21
21
|
"@emotion/styled": "^11.9.3",
|
|
22
22
|
"@graphcommerce/framer-next-pages": "3.2.4",
|
|
23
|
-
"@graphcommerce/framer-scroller": "2.1.
|
|
23
|
+
"@graphcommerce/framer-scroller": "2.1.31",
|
|
24
24
|
"@graphcommerce/framer-utils": "3.1.4",
|
|
25
25
|
"@graphcommerce/image": "3.1.7",
|
|
26
26
|
"cookie": "^0.5.0",
|