@woosmap/ui 4.146.0 → 4.147.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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@woosmap/ui",
3
- "version": "4.146.0",
3
+ "version": "4.147.0",
4
4
  "repository": {
5
5
  "type": "git",
6
6
  "url": "git+https://github.com/WebGeoServices/ui.git"
@@ -2,11 +2,12 @@ import React, { Component } from 'react';
2
2
  import PropTypes from 'prop-types';
3
3
  import { motion, AnimatePresence } from 'framer-motion';
4
4
 
5
+ const MotionDiv = motion.div;
5
6
  export default class Animate extends Component {
6
7
  render() {
7
8
  const { children, layerProps, ...rest } = this.props;
8
9
  return (
9
- <motion.div
10
+ <MotionDiv
10
11
  initial={{ opacity: 0, scale: 0.85 }} // animate from
11
12
  animate={{ opacity: 1, scale: 1 }} // animate to
12
13
  exit={{ opacity: 0, scale: 0.85 }} // animate exit
@@ -19,7 +20,7 @@ export default class Animate extends Component {
19
20
  {...rest}
20
21
  >
21
22
  {children}
22
- </motion.div>
23
+ </MotionDiv>
23
24
  );
24
25
  }
25
26
  }
@@ -5,6 +5,8 @@ import { motion, AnimatePresence } from 'framer-motion';
5
5
  import Button from '../Button/Button';
6
6
  import withClickOutside from '../withClickOutside/withClickOutside';
7
7
 
8
+ const MotionDiv = motion.div;
9
+
8
10
  class Panel extends Component {
9
11
  constructor(props) {
10
12
  super(props);
@@ -94,7 +96,7 @@ class Panel extends Component {
94
96
  return (
95
97
  <AnimatePresence>
96
98
  {open && (
97
- <motion.div
99
+ <MotionDiv
98
100
  ref={this.clickOutsideRef}
99
101
  data-testid={testId}
100
102
  className={cl('panel', `panel--${position}`)}
@@ -124,7 +126,7 @@ class Panel extends Component {
124
126
  </div>
125
127
  </div>
126
128
  <div className="panel__body">{loading ? this.getPlaceholderSections() : children}</div>
127
- </motion.div>
129
+ </MotionDiv>
128
130
  )}
129
131
  </AnimatePresence>
130
132
  );