oolib 2.119.0 → 2.119.1
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.
|
@@ -25,10 +25,11 @@ var CheckboxInput = function (_a) {
|
|
|
25
25
|
return (react_1.default.createElement(CheckboxButton_1.CheckboxButton, { isSelected: isSelected, disabled: disabled, invert: invert, S: S, className: 'btn',
|
|
26
26
|
disabled: options.disabled || disabled }));
|
|
27
27
|
};
|
|
28
|
-
var genCheckSquare = function () { return (react_1.default.createElement(
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
28
|
+
var genCheckSquare = function () { return (react_1.default.createElement("div", { style: { flexShrink: 0 } },
|
|
29
|
+
react_1.default.createElement(CheckSquare, { size: S ? 22.5 : 26, color: invert ? invertGreen : green, style: {
|
|
30
|
+
margin: '-7px -2.8px -7px -3.2px',
|
|
31
|
+
flexShrink: 0
|
|
32
|
+
} }))); };
|
|
32
33
|
var genXSquare = function () { return (react_1.default.createElement(XSquare, { size: S ? 21.5 : 26, color: invert ? invertRed : red, style: {
|
|
33
34
|
margin: '-7px -2.8px -7px -3.2px',
|
|
34
35
|
flexShrink: 0
|
|
@@ -36,14 +37,14 @@ var CheckboxInput = function (_a) {
|
|
|
36
37
|
return option.loading
|
|
37
38
|
? react_1.default.createElement(TextLoader_1.TextLoader, { style: { width: "8rem", height: "1.5rem" } })
|
|
38
39
|
: inputStyle === 'tagSelect' ? (react_1.default.createElement(Tags_1.TagSelect, { isSelected: isSelected, invert: invert, disabled: disabled, onClick: function () { return !disabled && onClick(isSelected, option); }, display: option.display, value: option.value, style: { alignSelf: 'flex-start' } })) : (react_1.default.createElement(styled_1.StyledOption, { rightWrongResult: rightWrongResult, isSelected: isSelected, disabled: disabled, invert: invert, S: S, onClick: function () { return !rightWrongResult && !disabled && onClick && onClick(isSelected, option); } },
|
|
39
|
-
rightWrongResult
|
|
40
|
+
react_1.default.createElement("div", { style: { flexShrink: 0 } }, rightWrongResult
|
|
40
41
|
? ["markCorrect", "revealCorrect"].includes(markingCommand)
|
|
41
42
|
? genCheckSquare()
|
|
42
43
|
: markingCommand === 'markWrong'
|
|
43
44
|
? genXSquare()
|
|
44
45
|
: genCheckboxButton({ disabled: true }) //else rightWrongResult has come in, but this doesnt have to be marked right or wrong
|
|
45
46
|
: genCheckboxButton() // rightWrongResult has not come in. so gen normal radio button
|
|
46
|
-
|
|
47
|
+
),
|
|
47
48
|
react_1.default.createElement(SuitableTypo, { bold: rightWrongResult && isSelected, color: disabled && greyColor40, invert: invert }, option.display)));
|
|
48
49
|
};
|
|
49
50
|
exports.CheckboxInput = CheckboxInput;
|