@micromag/screen-quiz 0.4.38 → 0.4.40
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 +8 -6
- package/package.json +16 -16
package/es/index.js
CHANGED
|
@@ -399,7 +399,7 @@ function Answers(_ref) {
|
|
|
399
399
|
_ref10$withSquareItem = _ref10.withSquareItems,
|
|
400
400
|
withSquareItems = _ref10$withSquareItem === void 0 ? false : _ref10$withSquareItem;
|
|
401
401
|
return /*#__PURE__*/React.createElement("div", {
|
|
402
|
-
className: classNames([styles$4.container, _defineProperty(_defineProperty(_defineProperty(_defineProperty(
|
|
402
|
+
className: classNames([styles$4.container, className, _defineProperty(_defineProperty(_defineProperty(_defineProperty({}, styles$4.answered, answered), styles$4.withIcon, !withoutIcon && hasGoodOrBadAnswerInList), styles$4.withSquareItems, withSquareItems === true), styles$4.isPlaceholder, isPlaceholder)])
|
|
403
403
|
}, filteredListOfItems !== null || isPlaceholder ? /*#__PURE__*/React.createElement(Keypad, {
|
|
404
404
|
className: styles$4.items,
|
|
405
405
|
items: keypadItems,
|
|
@@ -514,7 +514,7 @@ function Question(_ref) {
|
|
|
514
514
|
}, [setResultVisible]);
|
|
515
515
|
var hasIndex = index !== null && totalCount !== null;
|
|
516
516
|
return /*#__PURE__*/React.createElement(Layout, {
|
|
517
|
-
className: classNames([styles$3.container, _defineProperty(_defineProperty(_defineProperty(
|
|
517
|
+
className: classNames([styles$3.container, className, _defineProperty(_defineProperty(_defineProperty({}, styles$3.isPlaceholder, isPlaceholder), styles$3.resultVisible, resultVisible), styles$3.resultHidden, !hasResult)]),
|
|
518
518
|
verticalAlign: verticalAlign,
|
|
519
519
|
style: style
|
|
520
520
|
}, [!withoutIndex && hasIndex ? /*#__PURE__*/React.createElement(ScreenElement, {
|
|
@@ -804,7 +804,7 @@ function QuizScreen(_ref) {
|
|
|
804
804
|
var verticalAlign = isSplitted ? null : layout;
|
|
805
805
|
var showReset = isEdit && userAnswerIndex !== null;
|
|
806
806
|
return /*#__PURE__*/React.createElement("div", {
|
|
807
|
-
className: classNames([styles$2.container, _defineProperty(
|
|
807
|
+
className: classNames([styles$2.container, className, _defineProperty({}, styles$2.disabled, clickDisabled)]),
|
|
808
808
|
"data-screen-ready": true
|
|
809
809
|
}, /*#__PURE__*/React.createElement(Container, {
|
|
810
810
|
width: width,
|
|
@@ -931,7 +931,7 @@ function Results(_ref) {
|
|
|
931
931
|
_ref3$textStyle = _ref3.textStyle,
|
|
932
932
|
descriptionTextStyle = _ref3$textStyle === void 0 ? null : _ref3$textStyle;
|
|
933
933
|
return /*#__PURE__*/React.createElement(Layout, {
|
|
934
|
-
className: classNames([styles$1.container,
|
|
934
|
+
className: classNames([styles$1.container, className]),
|
|
935
935
|
fullscreen: true,
|
|
936
936
|
verticalAlign: verticalAlign,
|
|
937
937
|
style: style
|
|
@@ -981,6 +981,8 @@ function Results(_ref) {
|
|
|
981
981
|
|
|
982
982
|
var styles = {"container":"micromag-screen-quiz-title-container","title":"micromag-screen-quiz-title-title","description":"micromag-screen-quiz-title-description","emptyTitle":"micromag-screen-quiz-title-emptyTitle","emptyDescription":"micromag-screen-quiz-title-emptyDescription"};
|
|
983
983
|
|
|
984
|
+
/* eslint-disable react/no-array-index-key */
|
|
985
|
+
|
|
984
986
|
function Title(_ref) {
|
|
985
987
|
var _ref$layout = _ref.layout,
|
|
986
988
|
layout = _ref$layout === void 0 ? null : _ref$layout,
|
|
@@ -1007,7 +1009,7 @@ function Title(_ref) {
|
|
|
1007
1009
|
var hasDescription = isTextFilled(description);
|
|
1008
1010
|
var hasButton = isTextFilled(button);
|
|
1009
1011
|
return /*#__PURE__*/React.createElement(Layout, {
|
|
1010
|
-
className: classNames([styles.container,
|
|
1012
|
+
className: classNames([styles.container, className]),
|
|
1011
1013
|
fullscreen: true,
|
|
1012
1014
|
verticalAlign: verticalAlign,
|
|
1013
1015
|
style: style
|
|
@@ -1604,7 +1606,7 @@ function QuizMultipleScreen(_ref) {
|
|
|
1604
1606
|
}
|
|
1605
1607
|
});
|
|
1606
1608
|
return /*#__PURE__*/React.createElement("div", {
|
|
1607
|
-
className: classNames([styles$2.container,
|
|
1609
|
+
className: classNames([styles$2.container, className]),
|
|
1608
1610
|
"data-screen-ready": true
|
|
1609
1611
|
}, /*#__PURE__*/React.createElement(Container, {
|
|
1610
1612
|
width: width,
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@micromag/screen-quiz",
|
|
3
|
-
"version": "0.4.
|
|
3
|
+
"version": "0.4.40",
|
|
4
4
|
"private": false,
|
|
5
5
|
"description": "",
|
|
6
6
|
"keywords": [
|
|
@@ -64,20 +64,20 @@
|
|
|
64
64
|
"@fortawesome/fontawesome-svg-core": "^7.2.0",
|
|
65
65
|
"@fortawesome/free-solid-svg-icons": "^7.2.0",
|
|
66
66
|
"@fortawesome/react-fontawesome": "^3.2.0",
|
|
67
|
-
"@micromag/core": "^0.4.
|
|
68
|
-
"@micromag/data": "^0.4.
|
|
69
|
-
"@micromag/element-background": "^0.4.
|
|
70
|
-
"@micromag/element-button": "^0.4.
|
|
71
|
-
"@micromag/element-container": "^0.4.
|
|
72
|
-
"@micromag/element-footer": "^0.4.
|
|
73
|
-
"@micromag/element-header": "^0.4.
|
|
74
|
-
"@micromag/element-heading": "^0.4.
|
|
75
|
-
"@micromag/element-keypad": "^0.4.
|
|
76
|
-
"@micromag/element-layout": "^0.4.
|
|
77
|
-
"@micromag/element-scroll": "^0.4.
|
|
78
|
-
"@micromag/element-text": "^0.4.
|
|
79
|
-
"@micromag/element-visual": "^0.4.
|
|
80
|
-
"@micromag/transforms": "^0.4.
|
|
67
|
+
"@micromag/core": "^0.4.40",
|
|
68
|
+
"@micromag/data": "^0.4.40",
|
|
69
|
+
"@micromag/element-background": "^0.4.40",
|
|
70
|
+
"@micromag/element-button": "^0.4.40",
|
|
71
|
+
"@micromag/element-container": "^0.4.40",
|
|
72
|
+
"@micromag/element-footer": "^0.4.40",
|
|
73
|
+
"@micromag/element-header": "^0.4.40",
|
|
74
|
+
"@micromag/element-heading": "^0.4.40",
|
|
75
|
+
"@micromag/element-keypad": "^0.4.40",
|
|
76
|
+
"@micromag/element-layout": "^0.4.40",
|
|
77
|
+
"@micromag/element-scroll": "^0.4.40",
|
|
78
|
+
"@micromag/element-text": "^0.4.40",
|
|
79
|
+
"@micromag/element-visual": "^0.4.40",
|
|
80
|
+
"@micromag/transforms": "^0.4.40",
|
|
81
81
|
"@react-spring/core": "^10.0.3",
|
|
82
82
|
"@react-spring/web": "^10.0.3",
|
|
83
83
|
"classnames": "^2.2.6",
|
|
@@ -89,6 +89,6 @@
|
|
|
89
89
|
"access": "public",
|
|
90
90
|
"registry": "https://registry.npmjs.org/"
|
|
91
91
|
},
|
|
92
|
-
"gitHead": "
|
|
92
|
+
"gitHead": "6a9ff6e196a972abfd617f49353862cf445b0e83",
|
|
93
93
|
"types": "es/index.d.ts"
|
|
94
94
|
}
|