oolib 2.83.1 → 2.84.0

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.
@@ -1,4 +1,4 @@
1
- export function DropdownMulti({ saveValueAsString, value: valueProp, id, onChange: parentOnChange, className, readOnly, invert, selectClassName, optionsClassName, selectStyleOverride, optionsFn, options: optionsProp, isTagsStyle, isSearchable, searchFieldsConfig, setFilteredOptions: setFilteredOptionsInParent, setSearchString: setSearchStringInParent, searchString: searchStringInParent, label, optionsModalLabel, genCreateTagButton, placeholder, caretColor, genCustomSelectComp, disableSelectTextUpdate, selectConfig, lightboxHeight, lightboxStyle, optionsAnchor, popOutOfOverflowHiddenParent, displayCompStyle, S, disabled, broadcastShowOptions }: {
1
+ export function DropdownMulti({ saveValueAsString, value: valueProp, id, onChange: parentOnChange, className, readOnly, invert, selectClassName, optionsClassName, selectStyleOverride, optionsFn, options: optionsProp, isTagsStyle, isSearchable, searchFieldsConfig, setFilteredOptions: setFilteredOptionsInParent, setSearchString: setSearchStringInParent, searchString: searchStringInParent, label, optionsModalLabel, genCreateTagButton, placeholder, genCustomSelectComp, disableSelectTextUpdate, selectConfig, lightboxHeight, lightboxStyle, optionsAnchor, popOutOfOverflowHiddenParent, S, disabled, broadcastShowOptions }: {
2
2
  saveValueAsString: any;
3
3
  value: any;
4
4
  id: any;
@@ -21,7 +21,6 @@ export function DropdownMulti({ saveValueAsString, value: valueProp, id, onChang
21
21
  optionsModalLabel: any;
22
22
  genCreateTagButton: any;
23
23
  placeholder: any;
24
- caretColor: any;
25
24
  genCustomSelectComp: any;
26
25
  disableSelectTextUpdate: any;
27
26
  selectConfig: any;
@@ -29,7 +28,6 @@ export function DropdownMulti({ saveValueAsString, value: valueProp, id, onChang
29
28
  lightboxStyle: any;
30
29
  optionsAnchor: any;
31
30
  popOutOfOverflowHiddenParent: any;
32
- displayCompStyle: any;
33
31
  S: any;
34
32
  disabled: any;
35
33
  broadcastShowOptions: any;
@@ -60,10 +60,9 @@ function DropdownMulti(_a) {
60
60
  // injectOtherOption,
61
61
  readOnly = _a.readOnly, invert = _a.invert, selectClassName = _a.selectClassName, //used to override font size in priimary header
62
62
  optionsClassName = _a.optionsClassName, //used to override font size in priimary header
63
- selectStyleOverride = _a.selectStyleOverride, optionsFn = _a.optionsFn, optionsProp = _a.options, isTagsStyle = _a.isTagsStyle, isSearchable = _a.isSearchable, searchFieldsConfig = _a.searchFieldsConfig, setFilteredOptionsInParent = _a.setFilteredOptions, setSearchStringInParent = _a.setSearchString, searchStringInParent = _a.searchString, label = _a.label, optionsModalLabel = _a.optionsModalLabel, genCreateTagButton = _a.genCreateTagButton, placeholder = _a.placeholder, caretColor = _a.caretColor, genCustomSelectComp = _a.genCustomSelectComp, disableSelectTextUpdate = _a.disableSelectTextUpdate, selectConfig = _a.selectConfig,
63
+ selectStyleOverride = _a.selectStyleOverride, optionsFn = _a.optionsFn, optionsProp = _a.options, isTagsStyle = _a.isTagsStyle, isSearchable = _a.isSearchable, searchFieldsConfig = _a.searchFieldsConfig, setFilteredOptionsInParent = _a.setFilteredOptions, setSearchStringInParent = _a.setSearchString, searchStringInParent = _a.searchString, label = _a.label, optionsModalLabel = _a.optionsModalLabel, genCreateTagButton = _a.genCreateTagButton, placeholder = _a.placeholder, genCustomSelectComp = _a.genCustomSelectComp, disableSelectTextUpdate = _a.disableSelectTextUpdate, selectConfig = _a.selectConfig,
64
64
  //props whose existence needs to be questioned:
65
- lightboxHeight = _a.lightboxHeight, lightboxStyle = _a.lightboxStyle, optionsAnchor = _a.optionsAnchor, popOutOfOverflowHiddenParent = _a.popOutOfOverflowHiddenParent, displayCompStyle = _a.displayCompStyle, //can be either tagsStyle OR commaSeparatedStyle
66
- S = _a.S, disabled = _a.disabled, broadcastShowOptions = _a.broadcastShowOptions;
65
+ lightboxHeight = _a.lightboxHeight, lightboxStyle = _a.lightboxStyle, optionsAnchor = _a.optionsAnchor, popOutOfOverflowHiddenParent = _a.popOutOfOverflowHiddenParent, S = _a.S, disabled = _a.disabled, broadcastShowOptions = _a.broadcastShowOptions;
67
66
  var theme = (0, styled_components_1.useTheme)();
68
67
  var props = arguments[0];
69
68
  var value = (0, getValue_1.getValue_MULTI)({ valueProp: valueProp, optionsFn: optionsFn, options: optionsProp, theme: theme, saveValueAsString: saveValueAsString });
@@ -137,23 +136,8 @@ function DropdownMulti(_a) {
137
136
  var genDisplayComp = function () {
138
137
  if (!(value === null || value === void 0 ? void 0 : value.length) > 0)
139
138
  return null;
140
- var tagsStyle = (react_1.default.createElement(styled_1.StyledTagsInputWrapper, null, value.map(function (d) { return (0, genTagComp_1.genTagComp)(id, d, { display: true, invert: invert, theme: theme }); })));
141
- var commaSeparatedStyle = (react_1.default.createElement("div", { style: { display: "flex", flexWrap: "wrap", gap: '0.5rem' } }, value.map(function (v, i) { return (react_1.default.createElement(react_1.Fragment, null,
139
+ return isTagsStyle ? (react_1.default.createElement(styled_1.StyledTagsInputWrapper, null, value.map(function (d) { return (0, genTagComp_1.genTagComp)(id, d, { display: true, invert: invert, theme: theme }); }))) : (react_1.default.createElement("div", { style: { display: "flex", flexWrap: "wrap", gap: "0.5rem" } }, value.map(function (v, i) { return (react_1.default.createElement(react_1.Fragment, null,
142
140
  react_1.default.createElement(DisplayCompSingle_1.DisplayCompSingle, { value: v, invert: invert, injectComma: i !== value.length - 1 }))); })));
143
- //if an explicit displayComp style is specified then listen to it.
144
- //else apply tagsStyle to 'tagStyle' inputs & commaseparatedstyle to
145
- //regular plain dropdowns.
146
- if (!!displayCompStyle) {
147
- return displayCompStyle === 'tagsStyle'
148
- ? tagsStyle
149
- : displayCompStyle === 'commaSeparatedStyle'
150
- && commaSeparatedStyle;
151
- }
152
- else {
153
- return isTagsStyle
154
- ? tagsStyle
155
- : commaSeparatedStyle;
156
- }
157
141
  };
158
142
  var _e = (0, react_1.useState)(false), focusSelectTagsInput = _e[0], setFocusSelectTagsInput = _e[1];
159
143
  var genSelectTagsInput = function () { return (react_1.default.createElement(SelectTagsInput_1.SelectTagsInput, __assign({}, {
@@ -185,7 +169,6 @@ function DropdownMulti(_a) {
185
169
  selectClassName: selectClassName,
186
170
  selectStyleOverride: selectStyleOverride,
187
171
  showOptions: showOptions,
188
- caretColor: caretColor,
189
172
  genCustomSelectComp: genCustomSelectComp,
190
173
  disableSelectTextUpdate: disableSelectTextUpdate,
191
174
  selectConfig: selectConfig,
@@ -1,4 +1,4 @@
1
- export function DropdownSingle({ optionsAnchor, lightboxHeight, lightboxStyle, selectClassName, optionsClassName, disableSelectTextUpdate, selectStyleOverride, value: valueProp, id, onChange: parentOnChange, className, style, readOnly, invert, optionsFn, options: optionsProp, saveValueAsString, isTagsStyle, selectConfig, label, optionsModalLabel, broadcastShowOptions, isSearchable, searchFieldsConfig, setFilteredOptions: setFilteredOptionsInParent, setSearchString: setSearchStringInParent, searchString: searchStringInParent, genCustomSelectComp, placeholder, caretColor, genCreateTagButton, popOutOfOverflowHiddenParent, displayCompStyle, S, disabled }: {
1
+ export function DropdownSingle({ optionsAnchor, lightboxHeight, lightboxStyle, selectClassName, optionsClassName, disableSelectTextUpdate, selectStyleOverride, value: valueProp, id, onChange: parentOnChange, className, style, readOnly, invert, optionsFn, options: optionsProp, saveValueAsString, isTagsStyle, selectConfig, label, optionsModalLabel, broadcastShowOptions, isSearchable, searchFieldsConfig, setFilteredOptions: setFilteredOptionsInParent, setSearchString: setSearchStringInParent, searchString: searchStringInParent, genCustomSelectComp, placeholder, genCreateTagButton, popOutOfOverflowHiddenParent, S, disabled }: {
2
2
  optionsAnchor: any;
3
3
  lightboxHeight: any;
4
4
  lightboxStyle: any;
@@ -28,10 +28,8 @@ export function DropdownSingle({ optionsAnchor, lightboxHeight, lightboxStyle, s
28
28
  searchString: any;
29
29
  genCustomSelectComp: any;
30
30
  placeholder: any;
31
- caretColor: any;
32
31
  genCreateTagButton: any;
33
32
  popOutOfOverflowHiddenParent: any;
34
- displayCompStyle: any;
35
33
  S: any;
36
34
  disabled: any;
37
35
  }, ...args: any[]): React.JSX.Element;
@@ -70,7 +70,7 @@ function DropdownSingle(_a) {
70
70
  //combobox specific
71
71
  isSearchable = _a.isSearchable, //
72
72
  searchFieldsConfig = _a.searchFieldsConfig, setFilteredOptionsInParent = _a.setFilteredOptions, setSearchStringInParent = _a.setSearchString, searchStringInParent = _a.searchString, genCustomSelectComp = _a.genCustomSelectComp, placeholder = _a.placeholder, //
73
- caretColor = _a.caretColor, genCreateTagButton = _a.genCreateTagButton, popOutOfOverflowHiddenParent = _a.popOutOfOverflowHiddenParent, displayCompStyle = _a.displayCompStyle, S = _a.S, //
73
+ genCreateTagButton = _a.genCreateTagButton, popOutOfOverflowHiddenParent = _a.popOutOfOverflowHiddenParent, S = _a.S, //
74
74
  disabled = _a.disabled //
75
75
  ;
76
76
  var theme = (0, styled_components_1.useTheme)();
@@ -143,7 +143,6 @@ function DropdownSingle(_a) {
143
143
  invert: invert,
144
144
  value: value,
145
145
  placeholder: placeholder,
146
- caretColor: caretColor,
147
146
  genCustomSelectComp: genCustomSelectComp,
148
147
  selectClassName: selectClassName,
149
148
  selectStyleOverride: selectStyleOverride,
@@ -160,22 +159,7 @@ function DropdownSingle(_a) {
160
159
  var genDisplayComp = function () {
161
160
  if (!value)
162
161
  return null;
163
- var tagsStyle = (react_1.default.createElement(styled_1.StyledTagsInputWrapper, null, (0, genTagComp_1.genTagComp)(id, value, { display: true, invert: invert, theme: theme })));
164
- var commaSeparatedStyle = react_1.default.createElement(DisplayCompSingle_1.DisplayCompSingle, __assign({}, { value: value, invert: invert }));
165
- //if an explicit displayComp style is specified then listen to it.
166
- //else apply tagsStyle to 'tagStyle' inputs & commaseparatedstyle to
167
- //regular plain dropdowns.
168
- if (!!displayCompStyle) {
169
- return displayCompStyle === 'tagsStyle'
170
- ? tagsStyle
171
- : displayCompStyle === 'commaSeparatedStyle'
172
- && commaSeparatedStyle;
173
- }
174
- else {
175
- return isTagsStyle
176
- ? tagsStyle
177
- : commaSeparatedStyle;
178
- }
162
+ return isTagsStyle ? (react_1.default.createElement(styled_1.StyledTagsInputWrapper, null, (0, genTagComp_1.genTagComp)(id, value, { display: true, invert: invert, theme: theme }))) : (react_1.default.createElement(DisplayCompSingle_1.DisplayCompSingle, __assign({}, { value: value, invert: invert })));
179
163
  };
180
164
  return (react_1.default.createElement("div", { className: "OKE-Dropdown ".concat(className, " OKE-Dropdown--").concat(readOnly ? "displayComp" : "inputComp", " ").concat(invert ? "-invert-" : ""), style: style },
181
165
  react_1.default.createElement(BlockLabel_1.BlockLabel, __assign({}, (0, getBlockLabelProps_1.getBlockLabelProps)(props) /** in other words, props. */)),
@@ -1,6 +1,5 @@
1
- export function Caret({ invert, caretColor, showOptions, disabled }: {
1
+ export function Caret({ invert, showOptions, disabled }: {
2
2
  invert: any;
3
- caretColor: any;
4
3
  showOptions: any;
5
4
  disabled: any;
6
5
  }): React.JSX.Element;
@@ -11,9 +11,9 @@ var styled_1 = require("./styled");
11
11
  var white = colors_1.colors.white, greyColor100 = colors_1.colors.greyColor100, greyColor40 = colors_1.colors.greyColor40;
12
12
  var CaretDown = icons_1.icons.CaretDown, CaretUp = icons_1.icons.CaretUp;
13
13
  var Caret = function (_a) {
14
- var invert = _a.invert, caretColor = _a.caretColor, showOptions = _a.showOptions, disabled = _a.disabled;
14
+ var invert = _a.invert, showOptions = _a.showOptions, disabled = _a.disabled;
15
15
  return (react_1.default.createElement(styled_1.StyledCaret, null,
16
- showOptions ? (react_1.default.createElement(CaretUp, { size: 12, color: invert ? white : caretColor || greyColor100, weight: "bold" })) : (react_1.default.createElement(CaretDown, { size: 12, color: disabled ? greyColor40 : invert ? white : caretColor || greyColor100, weight: "bold" })),
16
+ showOptions ? (react_1.default.createElement(CaretUp, { size: 12, color: invert ? white : greyColor100, weight: "bold" })) : (react_1.default.createElement(CaretDown, { size: 12, color: disabled ? greyColor40 : invert ? white : greyColor100, weight: "bold" })),
17
17
  react_1.default.createElement(styled_1.StyledCaretClickArea, null)));
18
18
  };
19
19
  exports.Caret = Caret;
@@ -1,8 +1,7 @@
1
- export function SelectDropdown({ invert, value, placeholder, caretColor, genCustomSelectComp, selectClassName, showOptions, disableSelectTextUpdate, selectConfig, selectStyleOverride, S, disabled, }: {
1
+ export function SelectDropdown({ invert, value, placeholder, genCustomSelectComp, selectClassName, showOptions, disableSelectTextUpdate, selectConfig, selectStyleOverride, S, disabled, }: {
2
2
  invert: any;
3
3
  value: any;
4
4
  placeholder: any;
5
- caretColor: any;
6
5
  genCustomSelectComp: any;
7
6
  selectClassName: any;
8
7
  showOptions: any;
@@ -24,7 +24,7 @@ var styled_1 = require("./styled");
24
24
  var SelectDropdown = function (_a) {
25
25
  var
26
26
  //from root
27
- invert = _a.invert, value = _a.value, placeholder = _a.placeholder, caretColor = _a.caretColor, genCustomSelectComp = _a.genCustomSelectComp, selectClassName = _a.selectClassName,
27
+ invert = _a.invert, value = _a.value, placeholder = _a.placeholder, genCustomSelectComp = _a.genCustomSelectComp, selectClassName = _a.selectClassName,
28
28
  //from Dropdown
29
29
  showOptions = _a.showOptions,
30
30
  //used only for filters, where we dont remove the placeholder even when an option is selected, instead we sustain the blue underline
@@ -57,7 +57,7 @@ var SelectDropdown = function (_a) {
57
57
  // dropdownSelectText.desc && showElem("desc") ? true : undefined
58
58
  // }
59
59
  className: "".concat(selectClassName || "", " ").concat(!value && placeholder) }, dropdownSelectText.display)))),
60
- react_1.default.createElement(Caret_1.Caret, __assign({}, { caretColor: caretColor, showOptions: showOptions, invert: invert, disabled: disabled })))); };
60
+ react_1.default.createElement(Caret_1.Caret, __assign({}, { showOptions: showOptions, invert: invert, disabled: disabled })))); };
61
61
  return genCustomSelectComp ? genCustomSelectComp() : genSelectComp();
62
62
  };
63
63
  exports.SelectDropdown = SelectDropdown;
@@ -22,9 +22,9 @@ exports.StyledPlaceholderWrapper = styled_components_1.default.div(templateObjec
22
22
  var smallPlaceholderUI = _a.smallPlaceholderUI;
23
23
  return !smallPlaceholderUI && "1.2rem";
24
24
  }, (0, mixins_1.transition)("background-color"));
25
- exports.StyledPlaceholder = styled_components_1.default.div(templateObject_2 || (templateObject_2 = __makeTemplateObject(["\n display: flex;\n flex-flow: column nowrap;\n height: 100%;\n width: 100%;\n gap: ", ";\n align-items: center;\n justify-content: center;\n text-align: center;\n border-radius: ", ";\n border: 0.12rem dashed ", ";\n padding: ", ";\n cursor: pointer;\n"], ["\n display: flex;\n flex-flow: column nowrap;\n height: 100%;\n width: 100%;\n gap: ", ";\n align-items: center;\n justify-content: center;\n text-align: center;\n border-radius: ", ";\n border: 0.12rem dashed ", ";\n padding: ", ";\n cursor: pointer;\n"])), function (_a) {
25
+ exports.StyledPlaceholder = styled_components_1.default.div(templateObject_2 || (templateObject_2 = __makeTemplateObject(["\n display: flex;\n flex-flow: column nowrap;\n height: 100%;\n width: 100%;\n /* gap: ", "; */\n gap: 0.5rem;\n align-items: center;\n justify-content: center;\n text-align: center;\n border-radius: ", ";\n border: 0.12rem dashed ", ";\n padding: ", ";\n cursor: pointer;\n"], ["\n display: flex;\n flex-flow: column nowrap;\n height: 100%;\n width: 100%;\n /* gap: ", "; */\n gap: 0.5rem;\n align-items: center;\n justify-content: center;\n text-align: center;\n border-radius: ", ";\n border: 0.12rem dashed ", ";\n padding: ", ";\n cursor: pointer;\n"])), function (_a) {
26
26
  var smallPlaceholderUI = _a.smallPlaceholderUI;
27
- return !smallPlaceholderUI && "0.3rem";
27
+ return !smallPlaceholderUI && "0.5rem";
28
28
  }, function (_a) {
29
29
  var containerShape = _a.containerShape;
30
30
  return containerShape === "circle" ? "50%" : "unset";
@@ -1,9 +1,10 @@
1
1
  export default PDFInput;
2
- declare function PDFInput({ id, onChange: parentOnChange, value, readOnly, invert, isInRTE, ...props }: {
2
+ declare function PDFInput({ id, onChange: parentOnChange, value, files, readOnly, invert, isInRTE, ...props }: {
3
3
  [x: string]: any;
4
4
  id: any;
5
5
  onChange: any;
6
6
  value: any;
7
+ files: any;
7
8
  readOnly: any;
8
9
  invert: any;
9
10
  isInRTE: any;
@@ -67,7 +67,7 @@ var ProgressBar_1 = require("../LoadersAndProgress/ProgressBar");
67
67
  var PDFActions_1 = require("./comps/PDFActions");
68
68
  var StyledActionsButtonWrapper = styled_components_1.default.div(templateObject_1 || (templateObject_1 = __makeTemplateObject(["\n position: absolute;\n right: 0;\n top: 0;\n z-index: 1000;\n margin: 0.5rem;\n"], ["\n position: absolute;\n right: 0;\n top: 0;\n z-index: 1000;\n margin: 0.5rem;\n"])));
69
69
  function PDFInput(_a) {
70
- var id = _a.id, parentOnChange = _a.onChange, value = _a.value, readOnly = _a.readOnly, invert = _a.invert, isInRTE = _a.isInRTE, props = __rest(_a, ["id", "onChange", "value", "readOnly", "invert", "isInRTE"]);
70
+ var id = _a.id, parentOnChange = _a.onChange, value = _a.value, files = _a.files, readOnly = _a.readOnly, invert = _a.invert, isInRTE = _a.isInRTE, props = __rest(_a, ["id", "onChange", "value", "files", "readOnly", "invert", "isInRTE"]);
71
71
  var theme = (0, styled_components_1.useTheme)();
72
72
  var _b = (0, react_1.useState)(null), uploadProgress = _b[0], setUploadProgress = _b[1];
73
73
  var SET_ALERT_BANNER = (0, bannerContext_1.useBannerContext)().SET_ALERT_BANNER;
@@ -97,6 +97,11 @@ function PDFInput(_a) {
97
97
  },
98
98
  });
99
99
  };
100
+ (0, react_1.useEffect)(function () {
101
+ if (files) {
102
+ handleUpload(files);
103
+ }
104
+ }, []);
100
105
  return (react_1.default.createElement(react_3.Fragment, null,
101
106
  react_1.default.createElement(BlockLabel_1.BlockLabel, __assign({}, (0, getBlockLabelProps_1.getBlockLabelProps)(props), { invert: invert })),
102
107
  readOnly ? (value === null || value === void 0 ? void 0 : value.map(function (d, i) { return (react_1.default.createElement(PDFEmbed_1.default, { key: i, filePath: d.publicUrl, fileName: d.originalFilename, fileID: d.generation })); }))
@@ -25,7 +25,7 @@ var utils_1 = require("../../../../utils");
25
25
  var CheckboxButton_1 = require("../CheckboxButton");
26
26
  var TextLoader_1 = require("../../../../../LoadersAndProgress/TextLoader");
27
27
  var CheckSquare = icons_1.icons.CheckSquare, XSquare = icons_1.icons.XSquare;
28
- var green = themes_1.colors.green, red = themes_1.colors.red, greyColor40 = themes_1.colors.greyColor40;
28
+ var red = themes_1.colors.red, greyColor40 = themes_1.colors.greyColor40, invertGreen = themes_1.colors.invertGreen, green = themes_1.colors.green, invertRed = themes_1.colors.invertRed;
29
29
  var CheckboxInput = function (_a) {
30
30
  var option = _a.option, onClick = _a.onClick, S = _a.S, inputStyle = _a.inputStyle, _b = _a.value, value = _b === void 0 ? [] : _b, invert = _a.invert, disabled = _a.disabled, rightWrongResult = _a.rightWrongResult;
31
31
  var isSelected = !!value.find(function (selOp) { return selOp.value === option.value; });
@@ -42,11 +42,11 @@ var CheckboxInput = function (_a) {
42
42
  disabled: options.disabled || disabled
43
43
  })));
44
44
  };
45
- var genCheckSquare = function () { return (react_1.default.createElement(CheckSquare, { size: S ? 22.5 : 26, color: green, style: {
45
+ var genCheckSquare = function () { return (react_1.default.createElement(CheckSquare, { size: S ? 22.5 : 26, color: invert ? invertGreen : green, style: {
46
46
  margin: '-7px -2.8px -7px -3.2px',
47
47
  flexShrink: 0
48
48
  } })); };
49
- var genXSquare = function () { return (react_1.default.createElement(XSquare, { size: S ? 21.5 : 26, color: red, style: {
49
+ var genXSquare = function () { return (react_1.default.createElement(XSquare, { size: S ? 21.5 : 26, color: invert ? invertRed : red, style: {
50
50
  margin: '-7px -2.8px -7px -3.2px',
51
51
  flexShrink: 0
52
52
  } })); };
@@ -106,6 +106,6 @@ function CheckboxList(_a) {
106
106
  shouldHideSomeOptions && !rightWrongResult && (react_1.default.createElement(Typo_1.SANS_3, { style: { marginTop: '1rem' } },
107
107
  react_1.default.createElement(OKELink_1.OKELink, { onClick: function () { return setSeeMore(!seeMore); }, children: !seeMore ? 'See More' : 'See Less' }))),
108
108
  rightWrongResult && commonIsCorrectDesc &&
109
- react_1.default.createElement(styled_1.StyledCorrectMessage, null, commonIsCorrectDesc)))));
109
+ react_1.default.createElement(styled_1.StyledCorrectMessage, { invert: invert }, commonIsCorrectDesc)))));
110
110
  }
111
111
  exports.CheckboxList = CheckboxList;
@@ -22,7 +22,7 @@ var Typo_1 = require("../../../../../Typo");
22
22
  var utils_1 = require("../../../../utils");
23
23
  var styled_1 = require("../../../../styled");
24
24
  var styled_2 = require("./styled");
25
- var green = themes_1.colors.green, red = themes_1.colors.red, greyColor40 = themes_1.colors.greyColor40;
25
+ var invertGreen = themes_1.colors.invertGreen, red = themes_1.colors.red, greyColor40 = themes_1.colors.greyColor40, green = themes_1.colors.green, invertRed = themes_1.colors.invertRed;
26
26
  var XCircle = icons_1.icons.XCircle, CheckCircle = icons_1.icons.CheckCircle;
27
27
  var RadioButton = function (_a) {
28
28
  var isSelected = _a.isSelected, onClick = _a.onClick, disabled = _a.disabled, invert = _a.invert, S = _a.S;
@@ -46,11 +46,11 @@ var RadioInput = function (_a) {
46
46
  disabled: options.disabled || disabled //because we force disabled if rightWrongResult exists & no markingCommand exists against this option i.e, it neither has to be marked right nor wrong
47
47
  })));
48
48
  };
49
- var genCheckCircle = function () { return (react_1.default.createElement(CheckCircle, { size: S ? 21 : 24.5, color: green, style: {
49
+ var genCheckCircle = function () { return (react_1.default.createElement(CheckCircle, { size: S ? 21 : 24.5, color: invert ? invertGreen : green, style: {
50
50
  margin: '-5px -1.5px -5px -3px',
51
51
  flexShrink: 0
52
52
  } })); };
53
- var genXCircle = function () { return (react_1.default.createElement(XCircle, { size: S ? 21 : 24.5, color: red, style: {
53
+ var genXCircle = function () { return (react_1.default.createElement(XCircle, { size: S ? 21 : 24.5, color: invert ? invertRed : red, style: {
54
54
  margin: '-5px -1.5px -5px -3px',
55
55
  flexShrink: 0
56
56
  } })); };
@@ -95,6 +95,6 @@ function RadioList(_a) {
95
95
  against the right answer. provided that an explanation is provided.
96
96
  */
97
97
  correctOp && rightWrongResult && commonIsCorrectDesc &&
98
- react_1.default.createElement(styled_1.StyledCorrectMessage, null, commonIsCorrectDesc)))));
98
+ react_1.default.createElement(styled_1.StyledCorrectMessage, { invert: invert }, commonIsCorrectDesc)))));
99
99
  }
100
100
  exports.RadioList = RadioList;
@@ -33,7 +33,7 @@ var utilsOolib_1 = require("../../utilsOolib");
33
33
  var Typo_1 = require("../Typo");
34
34
  var themes_1 = require("../../themes");
35
35
  var mixins_1 = require("../../themes/mixins");
36
- var green = themes_1.colors.green, greyColor80 = themes_1.colors.greyColor80;
36
+ var green = themes_1.colors.green, greyColor80 = themes_1.colors.greyColor80, white = themes_1.colors.white, greyColor100 = themes_1.colors.greyColor100;
37
37
  exports.StyledOptionsContainer = styled_components_1.default.div(templateObject_2 || (templateObject_2 = __makeTemplateObject(["\n display: flex;\n flex-wrap: wrap;\n gap: ", ";\n align-items: center;\n\n ", "\n"], ["\n display: flex;\n flex-wrap: wrap;\n gap: ", ";\n align-items: center;\n\n ", "\n"])), function (_a) {
38
38
  var S = _a.S;
39
39
  return S ? '0.7rem 1.5rem' : '1rem 2rem';
@@ -67,5 +67,8 @@ exports.StyledOtherTextInputWrapper = styled_components_1.default.div(templateOb
67
67
  var listType = _a.listType;
68
68
  return listType === 'vertical' ? (0, styled_components_1.css)(templateObject_7 || (templateObject_7 = __makeTemplateObject(["margin-left: 2.5rem;"], ["margin-left: 2.5rem;"]))) : (0, styled_components_1.css)(templateObject_8 || (templateObject_8 = __makeTemplateObject(["width: 28rem"], ["width: 28rem"])));
69
69
  }, (0, mixins_1.mediaQuery)('sm'));
70
- exports.StyledCorrectMessage = (0, styled_components_1.default)(Typo_1.SANS_3)(templateObject_10 || (templateObject_10 = __makeTemplateObject(["\n color: ", ";\n padding-top: 1rem;\n"], ["\n color: ", ";\n padding-top: 1rem;\n"])), green);
70
+ exports.StyledCorrectMessage = (0, styled_components_1.default)(Typo_1.SANS_3)(templateObject_10 || (templateObject_10 = __makeTemplateObject(["\n color: ", ";\n padding-top: 1rem;\n"], ["\n color: ", ";\n padding-top: 1rem;\n"])), function (_a) {
71
+ var invert = _a.invert;
72
+ return invert ? white : greyColor100;
73
+ });
71
74
  var templateObject_1, templateObject_2, templateObject_3, templateObject_4, templateObject_5, templateObject_6, templateObject_7, templateObject_8, templateObject_9, templateObject_10;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "oolib",
3
- "version": "2.83.1",
3
+ "version": "2.84.0",
4
4
  "description": " OKE Component Library",
5
5
  "main": "dist/index.js",
6
6
  "types": "dist/index.d.ts",