@micromag/screen-quiz 0.3.412 → 0.3.417
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 +6 -34
- package/lib/index.js +6 -34
- package/package.json +15 -15
package/es/index.js
CHANGED
|
@@ -909,10 +909,6 @@ var propTypes$1 = {
|
|
|
909
909
|
layout: PropTypes$1.string,
|
|
910
910
|
focusable: PropTypes$1.bool,
|
|
911
911
|
buttonDisabled: PropTypes$1.bool,
|
|
912
|
-
transitions: PropTypes.transitions,
|
|
913
|
-
transitionPlaying: PropTypes$1.bool,
|
|
914
|
-
transitionStagger: PropTypes$1.number,
|
|
915
|
-
transitionDisabled: PropTypes$1.bool,
|
|
916
912
|
className: PropTypes$1.string,
|
|
917
913
|
style: PropTypes$1.objectOf(PropTypes$1.oneOfType([PropTypes$1.string, PropTypes$1.number])),
|
|
918
914
|
onClickButton: PropTypes$1.func
|
|
@@ -924,10 +920,6 @@ var defaultProps$1 = {
|
|
|
924
920
|
button: null,
|
|
925
921
|
buttonDisabled: false,
|
|
926
922
|
focusable: false,
|
|
927
|
-
transitions: null,
|
|
928
|
-
transitionPlaying: false,
|
|
929
|
-
transitionStagger: 100,
|
|
930
|
-
transitionDisabled: false,
|
|
931
923
|
className: null,
|
|
932
924
|
style: null,
|
|
933
925
|
onClickButton: null
|
|
@@ -939,16 +931,10 @@ var Title = function Title(_ref) {
|
|
|
939
931
|
button = _ref.button,
|
|
940
932
|
buttonDisabled = _ref.buttonDisabled,
|
|
941
933
|
focusable = _ref.focusable,
|
|
942
|
-
transitions = _ref.transitions,
|
|
943
|
-
transitionPlaying = _ref.transitionPlaying,
|
|
944
|
-
transitionStagger = _ref.transitionStagger,
|
|
945
|
-
transitionDisabled = _ref.transitionDisabled,
|
|
946
934
|
className = _ref.className,
|
|
947
935
|
style = _ref.style,
|
|
948
936
|
onClickButton = _ref.onClickButton;
|
|
949
|
-
|
|
950
|
-
_useScreenRenderConte.isPreview;
|
|
951
|
-
_useScreenRenderConte.isEdit;
|
|
937
|
+
// const { isPreview, isEdit } = useScreenRenderContext();
|
|
952
938
|
var isSplitted = layout === 'split';
|
|
953
939
|
var verticalAlign = isSplitted ? null : layout;
|
|
954
940
|
var hasTitle = isTextFilled(title);
|
|
@@ -971,13 +957,9 @@ var Title = function Title(_ref) {
|
|
|
971
957
|
}),
|
|
972
958
|
emptyClassName: styles.emptyTitle,
|
|
973
959
|
isEmpty: !hasTitle
|
|
974
|
-
}, hasTitle ? /*#__PURE__*/React.createElement(
|
|
975
|
-
transitions: transitions,
|
|
976
|
-
playing: transitionPlaying,
|
|
977
|
-
disabled: transitionDisabled
|
|
978
|
-
}, /*#__PURE__*/React.createElement(Heading, Object.assign({}, title, {
|
|
960
|
+
}, hasTitle ? /*#__PURE__*/React.createElement(Heading, Object.assign({}, title, {
|
|
979
961
|
className: styles.title
|
|
980
|
-
}))
|
|
962
|
+
})) : null), /*#__PURE__*/React.createElement(ScreenElement, {
|
|
981
963
|
key: "description",
|
|
982
964
|
placeholder: "text",
|
|
983
965
|
emptyLabel: /*#__PURE__*/React.createElement(FormattedMessage, {
|
|
@@ -989,23 +971,13 @@ var Title = function Title(_ref) {
|
|
|
989
971
|
}),
|
|
990
972
|
emptyClassName: styles.emptyDescription,
|
|
991
973
|
isEmpty: !hasDescription
|
|
992
|
-
}, hasDescription ? /*#__PURE__*/React.createElement(
|
|
993
|
-
transitions: transitions,
|
|
994
|
-
playing: transitionPlaying,
|
|
995
|
-
disabled: transitionDisabled,
|
|
996
|
-
delay: transitionStagger
|
|
997
|
-
}, /*#__PURE__*/React.createElement(Text, Object.assign({}, description, {
|
|
974
|
+
}, hasDescription ? /*#__PURE__*/React.createElement(Text, Object.assign({}, description, {
|
|
998
975
|
className: styles.description
|
|
999
|
-
}))
|
|
976
|
+
})) : null), isSplitted ? /*#__PURE__*/React.createElement(Spacer, {
|
|
1000
977
|
key: "spacer"
|
|
1001
978
|
}) : null, /*#__PURE__*/React.createElement(ScreenElement, {
|
|
1002
979
|
key: "button",
|
|
1003
980
|
placeholder: "button"
|
|
1004
|
-
}, /*#__PURE__*/React.createElement(Transitions, {
|
|
1005
|
-
transitions: transitions,
|
|
1006
|
-
playing: transitionPlaying,
|
|
1007
|
-
disabled: transitionDisabled,
|
|
1008
|
-
delay: transitionStagger * 2
|
|
1009
981
|
}, /*#__PURE__*/React.createElement(Button, {
|
|
1010
982
|
disabled: buttonDisabled,
|
|
1011
983
|
focusable: focusable,
|
|
@@ -1020,7 +992,7 @@ var Title = function Title(_ref) {
|
|
|
1020
992
|
"type": 0,
|
|
1021
993
|
"value": "Start"
|
|
1022
994
|
}]
|
|
1023
|
-
})))
|
|
995
|
+
})))]);
|
|
1024
996
|
};
|
|
1025
997
|
Title.propTypes = propTypes$1;
|
|
1026
998
|
Title.defaultProps = defaultProps$1;
|
package/lib/index.js
CHANGED
|
@@ -933,10 +933,6 @@ var propTypes$1 = {
|
|
|
933
933
|
layout: PropTypes__default["default"].string,
|
|
934
934
|
focusable: PropTypes__default["default"].bool,
|
|
935
935
|
buttonDisabled: PropTypes__default["default"].bool,
|
|
936
|
-
transitions: core.PropTypes.transitions,
|
|
937
|
-
transitionPlaying: PropTypes__default["default"].bool,
|
|
938
|
-
transitionStagger: PropTypes__default["default"].number,
|
|
939
|
-
transitionDisabled: PropTypes__default["default"].bool,
|
|
940
936
|
className: PropTypes__default["default"].string,
|
|
941
937
|
style: PropTypes__default["default"].objectOf(PropTypes__default["default"].oneOfType([PropTypes__default["default"].string, PropTypes__default["default"].number])),
|
|
942
938
|
onClickButton: PropTypes__default["default"].func
|
|
@@ -948,10 +944,6 @@ var defaultProps$1 = {
|
|
|
948
944
|
button: null,
|
|
949
945
|
buttonDisabled: false,
|
|
950
946
|
focusable: false,
|
|
951
|
-
transitions: null,
|
|
952
|
-
transitionPlaying: false,
|
|
953
|
-
transitionStagger: 100,
|
|
954
|
-
transitionDisabled: false,
|
|
955
947
|
className: null,
|
|
956
948
|
style: null,
|
|
957
949
|
onClickButton: null
|
|
@@ -963,16 +955,10 @@ var Title = function Title(_ref) {
|
|
|
963
955
|
button = _ref.button,
|
|
964
956
|
buttonDisabled = _ref.buttonDisabled,
|
|
965
957
|
focusable = _ref.focusable,
|
|
966
|
-
transitions = _ref.transitions,
|
|
967
|
-
transitionPlaying = _ref.transitionPlaying,
|
|
968
|
-
transitionStagger = _ref.transitionStagger,
|
|
969
|
-
transitionDisabled = _ref.transitionDisabled,
|
|
970
958
|
className = _ref.className,
|
|
971
959
|
style = _ref.style,
|
|
972
960
|
onClickButton = _ref.onClickButton;
|
|
973
|
-
|
|
974
|
-
_useScreenRenderConte.isPreview;
|
|
975
|
-
_useScreenRenderConte.isEdit;
|
|
961
|
+
// const { isPreview, isEdit } = useScreenRenderContext();
|
|
976
962
|
var isSplitted = layout === 'split';
|
|
977
963
|
var verticalAlign = isSplitted ? null : layout;
|
|
978
964
|
var hasTitle = utils.isTextFilled(title);
|
|
@@ -995,13 +981,9 @@ var Title = function Title(_ref) {
|
|
|
995
981
|
}),
|
|
996
982
|
emptyClassName: styles.emptyTitle,
|
|
997
983
|
isEmpty: !hasTitle
|
|
998
|
-
}, hasTitle ? /*#__PURE__*/React__default["default"].createElement(
|
|
999
|
-
transitions: transitions,
|
|
1000
|
-
playing: transitionPlaying,
|
|
1001
|
-
disabled: transitionDisabled
|
|
1002
|
-
}, /*#__PURE__*/React__default["default"].createElement(Heading__default["default"], Object.assign({}, title, {
|
|
984
|
+
}, hasTitle ? /*#__PURE__*/React__default["default"].createElement(Heading__default["default"], Object.assign({}, title, {
|
|
1003
985
|
className: styles.title
|
|
1004
|
-
}))
|
|
986
|
+
})) : null), /*#__PURE__*/React__default["default"].createElement(components.ScreenElement, {
|
|
1005
987
|
key: "description",
|
|
1006
988
|
placeholder: "text",
|
|
1007
989
|
emptyLabel: /*#__PURE__*/React__default["default"].createElement(reactIntl.FormattedMessage, {
|
|
@@ -1013,23 +995,13 @@ var Title = function Title(_ref) {
|
|
|
1013
995
|
}),
|
|
1014
996
|
emptyClassName: styles.emptyDescription,
|
|
1015
997
|
isEmpty: !hasDescription
|
|
1016
|
-
}, hasDescription ? /*#__PURE__*/React__default["default"].createElement(
|
|
1017
|
-
transitions: transitions,
|
|
1018
|
-
playing: transitionPlaying,
|
|
1019
|
-
disabled: transitionDisabled,
|
|
1020
|
-
delay: transitionStagger
|
|
1021
|
-
}, /*#__PURE__*/React__default["default"].createElement(Text__default["default"], Object.assign({}, description, {
|
|
998
|
+
}, hasDescription ? /*#__PURE__*/React__default["default"].createElement(Text__default["default"], Object.assign({}, description, {
|
|
1022
999
|
className: styles.description
|
|
1023
|
-
}))
|
|
1000
|
+
})) : null), isSplitted ? /*#__PURE__*/React__default["default"].createElement(Layout.Spacer, {
|
|
1024
1001
|
key: "spacer"
|
|
1025
1002
|
}) : null, /*#__PURE__*/React__default["default"].createElement(components.ScreenElement, {
|
|
1026
1003
|
key: "button",
|
|
1027
1004
|
placeholder: "button"
|
|
1028
|
-
}, /*#__PURE__*/React__default["default"].createElement(components.Transitions, {
|
|
1029
|
-
transitions: transitions,
|
|
1030
|
-
playing: transitionPlaying,
|
|
1031
|
-
disabled: transitionDisabled,
|
|
1032
|
-
delay: transitionStagger * 2
|
|
1033
1005
|
}, /*#__PURE__*/React__default["default"].createElement(Button__default["default"], {
|
|
1034
1006
|
disabled: buttonDisabled,
|
|
1035
1007
|
focusable: focusable,
|
|
@@ -1044,7 +1016,7 @@ var Title = function Title(_ref) {
|
|
|
1044
1016
|
"type": 0,
|
|
1045
1017
|
"value": "Start"
|
|
1046
1018
|
}]
|
|
1047
|
-
})))
|
|
1019
|
+
})))]);
|
|
1048
1020
|
};
|
|
1049
1021
|
Title.propTypes = propTypes$1;
|
|
1050
1022
|
Title.defaultProps = defaultProps$1;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@micromag/screen-quiz",
|
|
3
|
-
"version": "0.3.
|
|
3
|
+
"version": "0.3.417",
|
|
4
4
|
"private": false,
|
|
5
5
|
"description": "",
|
|
6
6
|
"keywords": [
|
|
@@ -53,19 +53,19 @@
|
|
|
53
53
|
"@fortawesome/fontawesome-svg-core": "^1.2.32",
|
|
54
54
|
"@fortawesome/free-solid-svg-icons": "^5.15.1",
|
|
55
55
|
"@fortawesome/react-fontawesome": "^0.1.13",
|
|
56
|
-
"@micromag/core": "^0.3.
|
|
57
|
-
"@micromag/data": "^0.3.
|
|
58
|
-
"@micromag/element-background": "^0.3.
|
|
59
|
-
"@micromag/element-button": "^0.3.
|
|
60
|
-
"@micromag/element-container": "^0.3.
|
|
61
|
-
"@micromag/element-footer": "^0.3.
|
|
62
|
-
"@micromag/element-header": "^0.3.
|
|
63
|
-
"@micromag/element-heading": "^0.3.
|
|
64
|
-
"@micromag/element-layout": "^0.3.
|
|
65
|
-
"@micromag/element-scroll": "^0.3.
|
|
66
|
-
"@micromag/element-text": "^0.3.
|
|
67
|
-
"@micromag/element-visual": "^0.3.
|
|
68
|
-
"@micromag/transforms": "^0.3.
|
|
56
|
+
"@micromag/core": "^0.3.417",
|
|
57
|
+
"@micromag/data": "^0.3.417",
|
|
58
|
+
"@micromag/element-background": "^0.3.417",
|
|
59
|
+
"@micromag/element-button": "^0.3.417",
|
|
60
|
+
"@micromag/element-container": "^0.3.417",
|
|
61
|
+
"@micromag/element-footer": "^0.3.417",
|
|
62
|
+
"@micromag/element-header": "^0.3.417",
|
|
63
|
+
"@micromag/element-heading": "^0.3.417",
|
|
64
|
+
"@micromag/element-layout": "^0.3.417",
|
|
65
|
+
"@micromag/element-scroll": "^0.3.417",
|
|
66
|
+
"@micromag/element-text": "^0.3.417",
|
|
67
|
+
"@micromag/element-visual": "^0.3.417",
|
|
68
|
+
"@micromag/transforms": "^0.3.417",
|
|
69
69
|
"@react-spring/core": "^9.6.1",
|
|
70
70
|
"@react-spring/web": "^9.6.1",
|
|
71
71
|
"classnames": "^2.2.6",
|
|
@@ -79,5 +79,5 @@
|
|
|
79
79
|
"access": "public",
|
|
80
80
|
"registry": "https://registry.npmjs.org/"
|
|
81
81
|
},
|
|
82
|
-
"gitHead": "
|
|
82
|
+
"gitHead": "5a0113a6eaafea5c33a6beece8ad581519f490bb"
|
|
83
83
|
}
|