@micromag/screen-quiz 0.3.364 → 0.3.366
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/es/index.js +5 -4
- package/lib/index.js +4 -3
- package/package.json +2 -2
package/es/index.js
CHANGED
|
@@ -24,7 +24,7 @@ import Text from '@micromag/element-text';
|
|
|
24
24
|
import _toConsumableArray from '@babel/runtime/helpers/toConsumableArray';
|
|
25
25
|
import { faCheck } from '@fortawesome/free-solid-svg-icons/faCheck';
|
|
26
26
|
import { faTimes } from '@fortawesome/free-solid-svg-icons/faTimes';
|
|
27
|
-
import { animated, useTransition } from '@react-spring/web';
|
|
27
|
+
import { animated, useTransition, easings } from '@react-spring/web';
|
|
28
28
|
import Button from '@micromag/element-button';
|
|
29
29
|
import { TransitionGroup, CSSTransition } from 'react-transition-group';
|
|
30
30
|
|
|
@@ -144,7 +144,7 @@ var Answers = function Answers(_ref) {
|
|
|
144
144
|
if (answersCollapsed) {
|
|
145
145
|
timeout = setTimeout(function () {
|
|
146
146
|
setAnswersFinalCollapse(true);
|
|
147
|
-
},
|
|
147
|
+
}, 300);
|
|
148
148
|
}
|
|
149
149
|
return function () {
|
|
150
150
|
if (timeout !== null) {
|
|
@@ -223,9 +223,10 @@ var Answers = function Answers(_ref) {
|
|
|
223
223
|
height: hidden && showAnimation && !withoutGoodAnswer && !collapseAnimated && answersFinalCollapse ? 0 : 'auto'
|
|
224
224
|
};
|
|
225
225
|
},
|
|
226
|
+
// config: { tension: 300, friction: 35 },
|
|
226
227
|
config: {
|
|
227
|
-
|
|
228
|
-
|
|
228
|
+
duration: 300,
|
|
229
|
+
easing: easings.easeOutSine
|
|
229
230
|
}
|
|
230
231
|
});
|
|
231
232
|
return /*#__PURE__*/React.createElement("div", {
|
package/lib/index.js
CHANGED
|
@@ -167,7 +167,7 @@ var Answers = function Answers(_ref) {
|
|
|
167
167
|
if (answersCollapsed) {
|
|
168
168
|
timeout = setTimeout(function () {
|
|
169
169
|
setAnswersFinalCollapse(true);
|
|
170
|
-
},
|
|
170
|
+
}, 300);
|
|
171
171
|
}
|
|
172
172
|
return function () {
|
|
173
173
|
if (timeout !== null) {
|
|
@@ -246,9 +246,10 @@ var Answers = function Answers(_ref) {
|
|
|
246
246
|
height: hidden && showAnimation && !withoutGoodAnswer && !collapseAnimated && answersFinalCollapse ? 0 : 'auto'
|
|
247
247
|
};
|
|
248
248
|
},
|
|
249
|
+
// config: { tension: 300, friction: 35 },
|
|
249
250
|
config: {
|
|
250
|
-
|
|
251
|
-
|
|
251
|
+
duration: 300,
|
|
252
|
+
easing: web.easings.easeOutSine
|
|
252
253
|
}
|
|
253
254
|
});
|
|
254
255
|
return /*#__PURE__*/React__default["default"].createElement("div", {
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@micromag/screen-quiz",
|
|
3
|
-
"version": "0.3.
|
|
3
|
+
"version": "0.3.366",
|
|
4
4
|
"description": "",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"javascript"
|
|
@@ -76,5 +76,5 @@
|
|
|
76
76
|
"publishConfig": {
|
|
77
77
|
"access": "public"
|
|
78
78
|
},
|
|
79
|
-
"gitHead": "
|
|
79
|
+
"gitHead": "12ddf4e3ce18136dbf7737155cff4b12f3960b3d"
|
|
80
80
|
}
|