oolib 2.74.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
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
?
|
|
58
|
-
:
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
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/dist/icons/index.d.ts
CHANGED
|
@@ -104,6 +104,7 @@ export namespace icons {
|
|
|
104
104
|
export { TextAa };
|
|
105
105
|
export { ThumbsUp };
|
|
106
106
|
export { ChatText };
|
|
107
|
+
export { SlackLogo };
|
|
107
108
|
export { OkeGoogleIcon };
|
|
108
109
|
export { LetterH };
|
|
109
110
|
export { IndexIcon };
|
|
@@ -261,6 +262,7 @@ import { Keyboard } from "phosphor-react";
|
|
|
261
262
|
import { TextAa } from "phosphor-react";
|
|
262
263
|
import { ThumbsUp } from "phosphor-react";
|
|
263
264
|
import { ChatText } from "phosphor-react";
|
|
265
|
+
import { SlackLogo } from "phosphor-react";
|
|
264
266
|
import { OkeGoogleIcon } from "./custom";
|
|
265
267
|
import { LetterH } from "./custom";
|
|
266
268
|
import { IndexIcon } from "./custom";
|
package/dist/icons/index.js
CHANGED
|
@@ -109,6 +109,7 @@ exports.icons = {
|
|
|
109
109
|
TextAa: phosphor_react_1.TextAa,
|
|
110
110
|
ThumbsUp: phosphor_react_1.ThumbsUp,
|
|
111
111
|
ChatText: phosphor_react_1.ChatText,
|
|
112
|
+
SlackLogo: phosphor_react_1.SlackLogo,
|
|
112
113
|
//custom
|
|
113
114
|
OkeGoogleIcon: custom_1.OkeGoogleIcon,
|
|
114
115
|
LetterH: custom_1.LetterH,
|