@micromag/screen-quiz 0.4.38 → 0.4.41

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.
Files changed (2) hide show
  1. package/es/index.js +9 -7
  2. 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(_defineProperty({}, styles$4.answered, answered), styles$4.withIcon, !withoutIcon && hasGoodOrBadAnswerInList), styles$4.withSquareItems, withSquareItems === true), styles$4.isPlaceholder, isPlaceholder), className, className !== null)])
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(_defineProperty({}, styles$3.isPlaceholder, isPlaceholder), styles$3.resultVisible, resultVisible), styles$3.resultHidden, !hasResult), className, className !== null)]),
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(_defineProperty({}, styles$2.disabled, clickDisabled), className, className !== null)]),
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, _defineProperty({}, className, className !== null)]),
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, _defineProperty({}, className, className !== null)]),
1012
+ className: classNames([styles.container, className]),
1011
1013
  fullscreen: true,
1012
1014
  verticalAlign: verticalAlign,
1013
1015
  style: style
@@ -1582,7 +1584,7 @@ function QuizMultipleScreen(_ref) {
1582
1584
  var bgItem = useMemo(function () {
1583
1585
  return {
1584
1586
  key: backgroundKey,
1585
- background: finalBackground
1587
+ background: finalBackground || null
1586
1588
  };
1587
1589
  }, [backgroundKey, finalBackground]);
1588
1590
  var bgTransitions = useTransition(bgItem, {
@@ -1604,7 +1606,7 @@ function QuizMultipleScreen(_ref) {
1604
1606
  }
1605
1607
  });
1606
1608
  return /*#__PURE__*/React.createElement("div", {
1607
- className: classNames([styles$2.container, _defineProperty({}, className, className !== null)]),
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.38",
3
+ "version": "0.4.41",
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.38",
68
- "@micromag/data": "^0.4.38",
69
- "@micromag/element-background": "^0.4.38",
70
- "@micromag/element-button": "^0.4.38",
71
- "@micromag/element-container": "^0.4.38",
72
- "@micromag/element-footer": "^0.4.38",
73
- "@micromag/element-header": "^0.4.38",
74
- "@micromag/element-heading": "^0.4.38",
75
- "@micromag/element-keypad": "^0.4.38",
76
- "@micromag/element-layout": "^0.4.38",
77
- "@micromag/element-scroll": "^0.4.38",
78
- "@micromag/element-text": "^0.4.38",
79
- "@micromag/element-visual": "^0.4.38",
80
- "@micromag/transforms": "^0.4.38",
67
+ "@micromag/core": "^0.4.41",
68
+ "@micromag/data": "^0.4.41",
69
+ "@micromag/element-background": "^0.4.41",
70
+ "@micromag/element-button": "^0.4.41",
71
+ "@micromag/element-container": "^0.4.41",
72
+ "@micromag/element-footer": "^0.4.41",
73
+ "@micromag/element-header": "^0.4.41",
74
+ "@micromag/element-heading": "^0.4.41",
75
+ "@micromag/element-keypad": "^0.4.41",
76
+ "@micromag/element-layout": "^0.4.41",
77
+ "@micromag/element-scroll": "^0.4.41",
78
+ "@micromag/element-text": "^0.4.41",
79
+ "@micromag/element-visual": "^0.4.41",
80
+ "@micromag/transforms": "^0.4.41",
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": "e984a8b97d5c87914dd4844ff29628a5690edd6f",
92
+ "gitHead": "c7856a747ba0a4466f4b63bc29e31003275ac6e0",
93
93
  "types": "es/index.d.ts"
94
94
  }