oolib 2.25.1 → 2.25.3
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/dist/components/LoadersAndProgress/ProgressBar/index.js +0 -1
- package/dist/components/RadioAndCheckbox/comps/CheckboxList/comps/CheckboxInput/index.js +1 -1
- package/dist/components/RadioAndCheckbox/comps/CheckboxList/comps/CheckboxInput/styled.js +1 -1
- package/dist/components/RadioAndCheckbox/comps/CheckboxList/index.js +1 -1
- package/dist/components/RadioAndCheckbox/comps/RadioList/comps/RadioInput/styled.js +1 -1
- package/package.json +1 -1
|
@@ -9,7 +9,6 @@ var Typo_1 = require("../../Typo");
|
|
|
9
9
|
var styled_1 = require("../styled");
|
|
10
10
|
var ProgressBar = function (_a) {
|
|
11
11
|
var progress = _a.progress, text = _a.text, children = _a.children, _b = _a.isBlock, isBlock = _b === void 0 ? true : _b, _c = _a.blockHeight, blockHeight = _c === void 0 ? '100%' : _c, _d = _a.barWidth, barWidth = _d === void 0 ? 100 : _d;
|
|
12
|
-
var loaderWidth = 100; //maybe in the future this will be controlled by a size prop
|
|
13
12
|
var genLoader = function () { return (react_1.default.createElement(styled_1.StyledLoaderWrapper, { isBlock: isBlock },
|
|
14
13
|
react_1.default.createElement(styled_1.StyledHorLoader, { barWidth: barWidth },
|
|
15
14
|
react_1.default.createElement(styled_1.StyledHorLoadingBar, { barWidth: barWidth, progress: progress })),
|
|
@@ -36,7 +36,7 @@ var CheckboxInput = function (_a) {
|
|
|
36
36
|
var isSelected = !!value.find(function (selOp) { return selOp.value === option.value; });
|
|
37
37
|
var markingCommand = (0, utils_1.getMarkingCommand)({ option: option, isSelected: isSelected }); // returns undefined if option isn't labeled as 'correct' nor selected
|
|
38
38
|
var SuitableTypo = S ? Typo_1.SANS_2 : Typo_1.SANS_3;
|
|
39
|
-
return inputStyle === 'tagSelect' ? (react_1.default.createElement(Tags_1.TagSelect, __assign({}, { isSelected: isSelected, invert: invert, disabled: disabled }, { onClick: function () { return !disabled && onClick(option, isSelected); }, 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(
|
|
39
|
+
return inputStyle === 'tagSelect' ? (react_1.default.createElement(Tags_1.TagSelect, __assign({}, { isSelected: isSelected, invert: invert, disabled: disabled }, { onClick: function () { return !disabled && onClick(option, isSelected); }, 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); } }),
|
|
40
40
|
!rightWrongResult || markingCommand === undefined ?
|
|
41
41
|
react_1.default.createElement(exports.CheckboxButton, __assign({}, { isSelected: isSelected, disabled: disabled, invert: invert, S: S, className: 'btn' }))
|
|
42
42
|
:
|
|
@@ -33,7 +33,7 @@ var utilsOolib_1 = require("../../../../../../utilsOolib");
|
|
|
33
33
|
var themes_1 = require("../../../../../../themes");
|
|
34
34
|
var mixins_1 = require("../../../../../../themes/mixins");
|
|
35
35
|
var none = themes_1.colors.none, greyColor40 = themes_1.colors.greyColor40, greyColor80 = themes_1.colors.greyColor80;
|
|
36
|
-
exports.StyledCheckbox = styled_components_1.default.button(templateObject_3 || (templateObject_3 = __makeTemplateObject(["\n \n width: ", ";\n height: ", ";\n border: none;\n box-shadow: inset 0 0 0 2px ", ";\n border-radius: 2px;\n background-color: ", ";\n cursor: ", ";\n\n ", "\n\n\n ", "\n\n &:hover {\n ", "\n }\n\n"], ["\n \n width: ", ";\n height: ", ";\n border: none;\n box-shadow: inset 0 0 0 2px ", ";\n border-radius: 2px;\n background-color: ", ";\n cursor: ", ";\n\n ", "\n\n\n ", "\n\n &:hover {\n ", "\n }\n\n"])), function (_a) {
|
|
36
|
+
exports.StyledCheckbox = styled_components_1.default.button(templateObject_3 || (templateObject_3 = __makeTemplateObject(["\n \n width: ", ";\n height: ", ";\n border: none;\n box-shadow: inset 0 0 0 2px ", ";\n border-radius: 2px;\n background-color: ", ";\n cursor: ", ";\n\n ", "\n\n\n ", "\n\n &:hover {\n ", "\n }\n\n &:focus{\n border: none;\n box-shadow: none;\n }\n\n"], ["\n \n width: ", ";\n height: ", ";\n border: none;\n box-shadow: inset 0 0 0 2px ", ";\n border-radius: 2px;\n background-color: ", ";\n cursor: ", ";\n\n ", "\n\n\n ", "\n\n &:hover {\n ", "\n }\n\n &:focus{\n border: none;\n box-shadow: none;\n }\n\n"])), function (_a) {
|
|
37
37
|
var S = _a.S;
|
|
38
38
|
return S ? '1.7rem' : '2rem';
|
|
39
39
|
}, function (_a) {
|
|
@@ -67,7 +67,7 @@ function CheckboxList(_a) {
|
|
|
67
67
|
newValue = convToString(newValue);
|
|
68
68
|
onChange && onChange(id, newValue);
|
|
69
69
|
};
|
|
70
|
-
var handleCheckboxClick = function (
|
|
70
|
+
var handleCheckboxClick = function (isSelected, option) {
|
|
71
71
|
var newValue = isSelected
|
|
72
72
|
? value.filter(function (selOp) { return selOp.value !== option.value; })
|
|
73
73
|
: value.concat(option);
|
|
@@ -33,7 +33,7 @@ var themes_1 = require("../../../../../../themes");
|
|
|
33
33
|
var mixins_1 = require("../../../../../../themes/mixins");
|
|
34
34
|
var utilsOolib_1 = require("../../../../../../utilsOolib");
|
|
35
35
|
var none = themes_1.colors.none, white = themes_1.colors.white, greyColor40 = themes_1.colors.greyColor40, greyColor100 = themes_1.colors.greyColor100, greyColor80 = themes_1.colors.greyColor80;
|
|
36
|
-
exports.StyledRadioInput = styled_components_1.default.button(templateObject_3 || (templateObject_3 = __makeTemplateObject(["\n border-radius: 50%;\n width: ", ";\n height: ", ";\n border: 2px solid ", ";\n background-color: ", ";\n flex: 0 0 auto;\n cursor: ", ";\n ", "\n\n ", "\n\n &:hover {\n ", "\n }\n\n"], ["\n border-radius: 50%;\n width: ", ";\n height: ", ";\n border: 2px solid ", ";\n background-color: ", ";\n flex: 0 0 auto;\n cursor: ", ";\n ", "\n\n ", "\n\n &:hover {\n ", "\n }\n\n"])), function (_a) {
|
|
36
|
+
exports.StyledRadioInput = styled_components_1.default.button(templateObject_3 || (templateObject_3 = __makeTemplateObject(["\n border-radius: 50%;\n width: ", ";\n height: ", ";\n border: 2px solid ", ";\n background-color: ", ";\n flex: 0 0 auto;\n cursor: ", ";\n ", "\n\n ", "\n\n &:hover {\n ", "\n }\n\n &:focus {\n border: none;\n box-shadow: none;\n }\n\n"], ["\n border-radius: 50%;\n width: ", ";\n height: ", ";\n border: 2px solid ", ";\n background-color: ", ";\n flex: 0 0 auto;\n cursor: ", ";\n ", "\n\n ", "\n\n &:hover {\n ", "\n }\n\n &:focus {\n border: none;\n box-shadow: none;\n }\n\n"])), function (_a) {
|
|
37
37
|
var S = _a.S;
|
|
38
38
|
return S ? '1.7rem' : '2rem';
|
|
39
39
|
}, function (_a) {
|