oolib 2.75.0 → 2.75.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.
@@ -23,6 +23,7 @@ var Typo_1 = require("../../../../../Typo");
23
23
  var styled_1 = require("../../../../styled");
24
24
  var utils_1 = require("../../../../utils");
25
25
  var CheckboxButton_1 = require("../CheckboxButton");
26
+ var TextLoader_1 = require("../../../../../LoadersAndProgress/TextLoader");
26
27
  var CheckSquare = icons_1.icons.CheckSquare, XSquare = icons_1.icons.XSquare;
27
28
  var green = themes_1.colors.green, red = themes_1.colors.red, greyColor40 = themes_1.colors.greyColor40;
28
29
  var CheckboxInput = function (_a) {
@@ -49,15 +50,17 @@ var CheckboxInput = function (_a) {
49
50
  margin: '-7px -2.8px -7px -3.2px',
50
51
  flexShrink: 0
51
52
  } })); };
52
- return inputStyle === 'tagSelect' ? (react_1.default.createElement(Tags_1.TagSelect, __assign({}, { 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, __assign({}, { rightWrongResult: rightWrongResult, isSelected: isSelected, disabled: disabled, invert: invert, S: S }, { onClick: function () { return !rightWrongResult && !disabled && onClick && onClick(isSelected, option); } }),
53
- rightWrongResult
54
- ? ["markCorrect", "revealCorrect"].includes(markingCommand)
55
- ? genCheckSquare()
56
- : markingCommand === 'markWrong'
57
- ? genXSquare()
58
- : genCheckboxButton({ disabled: true }) //else rightWrongResult has come in, but this doesnt have to be marked right or wrong
59
- : genCheckboxButton() // rightWrongResult has not come in. so gen normal radio button
60
- ,
61
- react_1.default.createElement(SuitableTypo, { bold: rightWrongResult && isSelected, color: disabled && greyColor40, invert: invert }, option.display)));
53
+ return option.loading
54
+ ? react_1.default.createElement(TextLoader_1.TextLoader, { style: { width: "8rem", height: "1.5rem" } })
55
+ : inputStyle === 'tagSelect' ? (react_1.default.createElement(Tags_1.TagSelect, __assign({}, { 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, __assign({}, { rightWrongResult: rightWrongResult, isSelected: isSelected, disabled: disabled, invert: invert, S: S }, { onClick: function () { return !rightWrongResult && !disabled && onClick && onClick(isSelected, option); } }),
56
+ rightWrongResult
57
+ ? ["markCorrect", "revealCorrect"].includes(markingCommand)
58
+ ? genCheckSquare()
59
+ : markingCommand === 'markWrong'
60
+ ? genXSquare()
61
+ : genCheckboxButton({ disabled: true }) //else rightWrongResult has come in, but this doesnt have to be marked right or wrong
62
+ : genCheckboxButton() // rightWrongResult has not come in. so gen normal radio button
63
+ ,
64
+ react_1.default.createElement(SuitableTypo, { bold: rightWrongResult && isSelected, color: disabled && greyColor40, invert: invert }, option.display)));
62
65
  };
63
66
  exports.CheckboxInput = CheckboxInput;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "oolib",
3
- "version": "2.75.0",
3
+ "version": "2.75.1",
4
4
  "description": " OKE Component Library",
5
5
  "main": "dist/index.js",
6
6
  "types": "dist/index.d.ts",