oolib 2.182.0 → 2.183.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.
@@ -8,12 +8,10 @@ var react_1 = __importDefault(require("react"));
8
8
  var icons_1 = require("../../../../../../../icons");
9
9
  var themes_1 = require("../../../../../../themes");
10
10
  var styled_1 = require("./styled");
11
- var getDynamicColors_1 = require("../../../../../../themes/utils/getDynamicColors");
12
- var styled_components_1 = require("styled-components");
13
11
  var _EXPORTS_1 = require("../../../../../../../utils/_EXPORTS");
14
12
  var mixins_1 = require("../../../../../../../themes/mixins");
15
13
  var Check = icons_1.icons.Check, Minus = icons_1.icons.Minus;
16
- var white = themes_1.colors.white, greyColor100 = themes_1.colors.greyColor100, grey40 = themes_1.colors.grey40;
14
+ var white = themes_1.colors.white, grey40 = themes_1.colors.grey40;
17
15
  /**
18
16
  * value and onChange are being passed as props so
19
17
  * that it can be generated dynamically via our
@@ -24,7 +22,6 @@ var CheckboxButton = function (_a) {
24
22
  var id = _a.id, className = _a.className, _isSelected = _a.isSelected, isMixture = _a.isMixture, //basically if isSelected/value && isMixture is true, then we get that '-' thing in the checkbox (useful on table headers where some (not all) rows are selected below)
25
23
  value = _a.value, //can be used interchangibly with isSelected
26
24
  onChange = _a.onChange, disabled = _a.disabled, invert = _a.invert, S = _a.S;
27
- var theme = (0, styled_components_1.useTheme)();
28
25
  var isSelected = (_b = _isSelected !== null && _isSelected !== void 0 ? _isSelected : value) !== null && _b !== void 0 ? _b : false;
29
26
  var CheckIcon = (isSelected && isMixture)
30
27
  ? Minus
@@ -37,7 +34,7 @@ var CheckboxButton = function (_a) {
37
34
  // e.stopPropagation(); //this disables the checkbox in checkboxlist which we dont want. so commented. tho we might need this later in table usecase in which case we will have to make stopPropagration a prop
38
35
  onChange && onChange(id, !isSelected);
39
36
  }, className: className, isSelected: isSelected, disabled: disabled, invert: invert, S: S }, isSelected && (react_1.default.createElement("div", { style: { filter: "drop-shadow(0px 4px 6px rgba(0, 0, 0, 0.25))", display: 'flex' } },
40
- react_1.default.createElement(CheckIcon, { weight: "bold", color: disabled ? grey40 : (0, getDynamicColors_1.getOnSecondary)(theme === null || theme === void 0 ? void 0 : theme.colors), size: screenWidth >= (0, mixins_1.getBreakPoint)('md') ? 14 : 16, style: {
37
+ react_1.default.createElement(CheckIcon, { weight: "bold", color: disabled ? grey40 : white, size: screenWidth >= (0, mixins_1.getBreakPoint)('md') ? 14 : 16, style: {
41
38
  flexShrink: 0,
42
39
  } })))));
43
40
  };
@@ -41,10 +41,9 @@ exports.StyledCheckbox = void 0;
41
41
  var styled_components_1 = __importStar(require("styled-components"));
42
42
  var themes_1 = require("../../../../../../themes");
43
43
  var mixins_1 = require("../../../../../../../themes/mixins");
44
- var getDynamicColors_1 = require("../../../../../../themes/utils/getDynamicColors");
45
44
  var baseStyling_1 = require("../../../../../../themes/utils/baseStyling");
46
- var grey20 = themes_1.colors.grey20, grey5 = themes_1.colors.grey5, grey10 = themes_1.colors.grey10, grey50 = themes_1.colors.grey50;
47
- exports.StyledCheckbox = styled_components_1.default.button(templateObject_3 || (templateObject_3 = __makeTemplateObject(["\n \n width: 2.4rem;\n height: 2.4rem;\n ", "{\n width: 1.8rem;\n height: 1.8rem;\n }\n border-radius: 4px;\n border: ", ";\n background-color: ", ";\n cursor: ", ";\n position: relative;\n display: flex;\n align-items: center;\n justify-content: center;\n\n ", "\n\n &:hover {\n ", "\n }\n"], ["\n \n width: 2.4rem;\n height: 2.4rem;\n ", "{\n width: 1.8rem;\n height: 1.8rem;\n }\n border-radius: 4px;\n border: ", ";\n background-color: ", ";\n cursor: ", ";\n position: relative;\n display: flex;\n align-items: center;\n justify-content: center;\n\n ", "\n\n &:hover {\n ", "\n }\n"])), (0, mixins_1.mediaQuery)('md'), function (_a) {
45
+ var grey20 = themes_1.colors.grey20, grey5 = themes_1.colors.grey5, grey10 = themes_1.colors.grey10, grey80 = themes_1.colors.grey80;
46
+ exports.StyledCheckbox = styled_components_1.default.button(templateObject_3 || (templateObject_3 = __makeTemplateObject(["\n \n width: 2.4rem;\n height: 2.4rem;\n ", "{\n width: 1.8rem;\n height: 1.8rem;\n }\n border-radius: 4px;\n border: ", ";\n background-color: ", ";\n color: white;\n cursor: ", ";\n position: relative;\n display: flex;\n align-items: center;\n justify-content: center;\n\n ", "\n\n &:hover {\n ", "\n }\n"], ["\n \n width: 2.4rem;\n height: 2.4rem;\n ", "{\n width: 1.8rem;\n height: 1.8rem;\n }\n border-radius: 4px;\n border: ", ";\n background-color: ", ";\n color: white;\n cursor: ", ";\n position: relative;\n display: flex;\n align-items: center;\n justify-content: center;\n\n ", "\n\n &:hover {\n ", "\n }\n"])), (0, mixins_1.mediaQuery)('md'), function (_a) {
48
47
  var isSelected = _a.isSelected, disabled = _a.disabled;
49
48
  if (isSelected && disabled) {
50
49
  return "1px solid ".concat(grey20);
@@ -56,7 +55,7 @@ exports.StyledCheckbox = styled_components_1.default.button(templateObject_3 ||
56
55
  }, function (_a) {
57
56
  var isSelected = _a.isSelected, disabled = _a.disabled, theme = _a.theme;
58
57
  if (isSelected) {
59
- return disabled ? grey5 : (0, getDynamicColors_1.getSecondaryContainer)(theme === null || theme === void 0 ? void 0 : theme.colors);
58
+ return disabled ? grey5 : grey80;
60
59
  }
61
60
  return disabled ? grey5 : "white";
62
61
  }, function (_a) {
@@ -14,7 +14,7 @@ var utils_1 = require("../../../../utils");
14
14
  var CheckboxButton_1 = require("../CheckboxButton");
15
15
  var TextLoader_1 = require("../../../../../../../components/LoadersAndProgress/TextLoader");
16
16
  var CheckSquare = icons_1.icons.CheckSquare, XSquare = icons_1.icons.XSquare;
17
- var red = themes_1.colors.red, grey40 = themes_1.colors.grey40, grey80 = themes_1.colors.grey80, onSecondary = themes_1.colors.onSecondary, invertGreen = themes_1.colors.invertGreen, green = themes_1.colors.green, invertRed = themes_1.colors.invertRed;
17
+ var red = themes_1.colors.red, grey40 = themes_1.colors.grey40, grey80 = themes_1.colors.grey80, onSecondary = themes_1.colors.onSecondary, invertRed = themes_1.colors.invertRed;
18
18
  var CheckboxInput = function (_a) {
19
19
  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, _c = _a.className, className = _c === void 0 ? '' : _c;
20
20
  var isSelected = !!value.find(function (selOp) { return selOp.value === option.value; });
@@ -35,7 +35,7 @@ var CheckboxInput = function (_a) {
35
35
  return option.loading ? (react_1.default.createElement(TextLoader_1.TextLoader, { style: { width: "8rem", height: "1.5rem" } })) : 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, className: className, onClick: function () {
36
36
  return !rightWrongResult && !disabled && onClick && onClick(isSelected, option);
37
37
  } },
38
- react_1.default.createElement("div", { style: { flexShrink: 0 } }, rightWrongResult
38
+ react_1.default.createElement("div", { style: { alignSelf: "flex-start", background: "yellow" } }, rightWrongResult
39
39
  ? ["markCorrect", "revealCorrect"].includes(markingCommand)
40
40
  ? genCheckSquare()
41
41
  : markingCommand === "markWrong"
@@ -48,7 +48,6 @@ exports.CheckboxList = CheckboxList;
48
48
  var react_1 = __importStar(require("react"));
49
49
  var BlockLabel_1 = require("../../../BlockLabel");
50
50
  var TextInputs_1 = require("../../../TextInputs");
51
- var Buttons_1 = require("../../../Buttons");
52
51
  var _EXPORTS_1 = require("../../../../../utils/_EXPORTS");
53
52
  var utils_1 = require("../../utils");
54
53
  var styled_1 = require("../../styled");
@@ -38,14 +38,14 @@ var RadioInput = function (_a) {
38
38
  flexShrink: 0
39
39
  } })); };
40
40
  return (react_1.default.createElement(styled_1.StyledOption, { disabled: disabled, rightWrongResult: rightWrongResult, isSelected: isSelected, invert: invert, S: S, onClick: function () { return !rightWrongResult && !disabled && onClick(option); } },
41
- rightWrongResult
41
+ react_1.default.createElement("div", null, rightWrongResult
42
42
  ? ["markCorrect", "revealCorrect"].includes(markingCommand)
43
43
  ? genCheckCircle()
44
44
  : markingCommand === 'markWrong'
45
45
  ? genXCircle()
46
46
  : genRadioButton({ disabled: true }) //else rightWrongResult has come in, but this doesnt have to be marked right or wrong
47
47
  : genRadioButton() // rightWrongResult as not come in. so gen normal radio button
48
- ,
48
+ ),
49
49
  react_1.default.createElement(Typo2_1.UI_BODY_SM_DF, { bold: rightWrongResult && isSelected, color: disabled ? __1.colors2.grey40 : __1.colors2.grey80, invert: invert }, option.display)));
50
50
  };
51
51
  exports.RadioInput = RadioInput;
@@ -42,26 +42,25 @@ var styled_components_1 = __importStar(require("styled-components"));
42
42
  var themes_1 = require("../../../../../../themes");
43
43
  var mixins_1 = require("../../../../../../../themes/mixins");
44
44
  var baseStyling_1 = require("../../../../../../themes/utils/baseStyling");
45
- var getDynamicColors_1 = require("../../../../../../themes/utils/getDynamicColors");
46
- 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, grey5 = themes_1.colors.grey5, grey10 = themes_1.colors.grey10, grey20 = themes_1.colors.grey20;
47
- exports.StyledRadioButton = styled_components_1.default.button(templateObject_3 || (templateObject_3 = __makeTemplateObject(["\n position: relative;\n width: 2.4rem;\n height: 2.4rem;\n ", "{\n width: 1.8rem;\n height: 1.8rem;\n }\n border-radius: 50%;\n background: ", ";\n border: ", ";\n cursor: ", ";\n display: flex;\n align-items: center;\n justify-content: center;\n\n ", "\n\n &:hover {\n ", "\n }\n\n /* &:focus {\n outline: none;\n box-shadow: ", ";\n } */\n\n /* add the smaller circle for selected state */\n &::after {\n z-index: 1; //so that the black overlay that appears via ::before is below this\n content: \"\";\n position: absolute;\n width: 1.4rem;\n height: 1.4rem;\n ", "{\n width: 1rem;\n height: 1rem;\n }\n border-radius: 50%;\n background: ", ";\n border: ", ";\n box-shadow: ", ";\n }\n"], ["\n position: relative;\n width: 2.4rem;\n height: 2.4rem;\n ", "{\n width: 1.8rem;\n height: 1.8rem;\n }\n border-radius: 50%;\n background: ", ";\n border: ", ";\n cursor: ", ";\n display: flex;\n align-items: center;\n justify-content: center;\n\n ", "\n\n &:hover {\n ", "\n }\n\n /* &:focus {\n outline: none;\n box-shadow: ", ";\n } */\n\n /* add the smaller circle for selected state */\n &::after {\n z-index: 1; //so that the black overlay that appears via ::before is below this\n content: \"\";\n position: absolute;\n width: 1.4rem;\n height: 1.4rem;\n ", "{\n width: 1rem;\n height: 1rem;\n }\n border-radius: 50%;\n background: ", ";\n border: ", ";\n box-shadow: ", ";\n }\n"])), (0, mixins_1.mediaQuery)('md'), function (_a) {
45
+ var red = themes_1.colors.red, white = themes_1.colors.white, grey2 = themes_1.colors.grey2, grey5 = themes_1.colors.grey5, grey10 = themes_1.colors.grey10, grey20 = themes_1.colors.grey20, grey80 = themes_1.colors.grey80;
46
+ exports.StyledRadioButton = styled_components_1.default.button(templateObject_3 || (templateObject_3 = __makeTemplateObject(["\n position: relative;\n width: 2.4rem;\n height: 2.4rem;\n ", "{\n width: 1.8rem;\n height: 1.8rem;\n }\n border-radius: 50%;\n cursor: ", ";\n display: flex;\n align-items: center;\n justify-content: center;\n\n ", "\n\n background: ", ";\n border: ", ";\n\n &:hover {\n ", "\n }\n\n /* &:focus {\n outline: none;\n box-shadow: ", ";\n } */\n\n /* add the smaller circle for selected state */\n &::after {\n z-index: 1; //so that the black overlay that appears via ::before is below this\n content: \"\";\n position: absolute;\n width: 1.4rem;\n height: 1.4rem;\n ", "{\n width: 1rem;\n height: 1rem;\n }\n border-radius: 50%;\n background-color: ", ";\n border: ", ";\n box-shadow: ", ";\n }\n"], ["\n position: relative;\n width: 2.4rem;\n height: 2.4rem;\n ", "{\n width: 1.8rem;\n height: 1.8rem;\n }\n border-radius: 50%;\n cursor: ", ";\n display: flex;\n align-items: center;\n justify-content: center;\n\n ", "\n\n background: ", ";\n border: ", ";\n\n &:hover {\n ", "\n }\n\n /* &:focus {\n outline: none;\n box-shadow: ", ";\n } */\n\n /* add the smaller circle for selected state */\n &::after {\n z-index: 1; //so that the black overlay that appears via ::before is below this\n content: \"\";\n position: absolute;\n width: 1.4rem;\n height: 1.4rem;\n ", "{\n width: 1rem;\n height: 1rem;\n }\n border-radius: 50%;\n background-color: ", ";\n border: ", ";\n box-shadow: ", ";\n }\n"])), (0, mixins_1.mediaQuery)('md'), function (_a) {
47
+ var disabled = _a.disabled;
48
+ return (disabled ? "not-allowed" : "pointer");
49
+ }, function (_a) {
50
+ var isSelected = _a.isSelected, disabled = _a.disabled;
51
+ return isSelected && !disabled && (0, styled_components_1.css)(templateObject_1 || (templateObject_1 = __makeTemplateObject(["\n ", " \n "], ["\n ", " \n "])), (0, baseStyling_1.applyBlackOverlayOnHover)());
52
+ }, function (_a) {
48
53
  var isSelected = _a.isSelected, disabled = _a.disabled, theme = _a.theme;
49
54
  if (isSelected) {
50
- return disabled ? grey5 : (0, getDynamicColors_1.getSecondaryContainer)(theme === null || theme === void 0 ? void 0 : theme.colors);
55
+ return disabled ? grey5 : grey80;
51
56
  }
52
57
  return disabled ? grey5 : "none";
53
58
  }, function (_a) {
54
59
  var isSelected = _a.isSelected, disabled = _a.disabled;
55
60
  if (isSelected) {
56
- return "none";
61
+ return disabled ? "1px solid ".concat(grey20) : "white";
57
62
  }
58
63
  return disabled ? "1px solid ".concat(grey10) : "1px solid ".concat(grey20);
59
- }, function (_a) {
60
- var disabled = _a.disabled;
61
- return (disabled ? "not-allowed" : "pointer");
62
- }, function (_a) {
63
- var isSelected = _a.isSelected, disabled = _a.disabled;
64
- return isSelected && !disabled && (0, styled_components_1.css)(templateObject_1 || (templateObject_1 = __makeTemplateObject(["\n ", " \n "], ["\n ", " \n "])), (0, baseStyling_1.applyBlackOverlayOnHover)());
65
64
  }, function (_a) {
66
65
  var isSelected = _a.isSelected, disabled = _a.disabled;
67
66
  return !disabled &&
@@ -71,13 +70,13 @@ exports.StyledRadioButton = styled_components_1.default.button(templateObject_3
71
70
  return isSelected ? "0px 4px 6px rgba(0, 0, 0, 0.25)" : "none";
72
71
  }, (0, mixins_1.mediaQuery)('md'), function (_a) {
73
72
  var isSelected = _a.isSelected, disabled = _a.disabled;
74
- return isSelected ? (disabled ? grey10 : white) : "transparent";
73
+ return isSelected ? white : disabled ? "none" : "none";
75
74
  }, function (_a) {
76
75
  var isSelected = _a.isSelected, disabled = _a.disabled, theme = _a.theme;
77
76
  return isSelected
78
77
  ? disabled
79
78
  ? "1px solid ".concat(grey20)
80
- : "1px solid ".concat((0, getDynamicColors_1.getOnSecondary)(theme === null || theme === void 0 ? void 0 : theme.colors))
79
+ : "1px solid ".concat(grey80)
81
80
  : "none";
82
81
  }, function (_a) {
83
82
  var isSelected = _a.isSelected, disabled = _a.disabled;
@@ -1,5 +1,5 @@
1
1
  export const StyledOptionsContainer: import("styled-components").StyledComponent<"div", any, {}, never>;
2
- export const StyledOption: import("styled-components").StyledComponent<"button", any, {}, never>;
2
+ export const StyledOption: import("styled-components").StyledComponent<"div", any, {}, never>;
3
3
  export const StyledOtherOptionContainer: import("styled-components").StyledComponent<"div", any, {}, never>;
4
4
  export const StyledOtherTextInputWrapper: import("styled-components").StyledComponent<"div", any, {}, never>;
5
5
  export const StyledCorrectMessage: import("styled-components").StyledComponent<import("react").FunctionComponent<import("../Typo2").TypoCompProps>, any, {}, never>;
@@ -59,7 +59,7 @@ exports.StyledOptionsContainer = styled_components_1.default.div(templateObject_
59
59
  return (S ? "1rem" : "1.4rem");
60
60
  }) : "";
61
61
  });
62
- exports.StyledOption = styled_components_1.default.button(templateObject_5 || (templateObject_5 = __makeTemplateObject(["\n border: none;\n background-color: unset;\n text-align: left;\n display: flex;\n align-items: center;\n /* gap: ", "; */\n gap: 0.8rem;\n padding: 0.4rem 0; //this is so that there is more click area on mobile\n ", " {\n gap: 0.6rem;\n padding: 0;\n }\n position: relative;\n cursor: ", ";\n\n &:hover .radioOrCheckboxButton_inside_input {\n ", "\n \n // here we manually trigger what apply10PeecentBlackOnHover does\n ", "\n }\n"], ["\n border: none;\n background-color: unset;\n text-align: left;\n display: flex;\n align-items: center;\n /* gap: ", "; */\n gap: 0.8rem;\n padding: 0.4rem 0; //this is so that there is more click area on mobile\n ", " {\n gap: 0.6rem;\n padding: 0;\n }\n position: relative;\n cursor: ", ";\n\n &:hover .radioOrCheckboxButton_inside_input {\n ", "\n \n // here we manually trigger what apply10PeecentBlackOnHover does\n ", "\n }\n"])), function (_a) {
62
+ exports.StyledOption = styled_components_1.default.div(templateObject_5 || (templateObject_5 = __makeTemplateObject(["\n border: none;\n background-color: unset;\n text-align: left;\n display: flex;\n align-items: center;\n /* gap: ", "; */\n gap: 0.8rem;\n padding: 0.4rem 0; //this is so that there is more click area on mobile\n ", " {\n gap: 0.6rem;\n padding: 0;\n }\n position: relative;\n cursor: ", ";\n\n &:hover .radioOrCheckboxButton_inside_input {\n ", "\n \n // here we manually trigger what apply10PeecentBlackOnHover does\n ", "\n }\n"], ["\n border: none;\n background-color: unset;\n text-align: left;\n display: flex;\n align-items: center;\n /* gap: ", "; */\n gap: 0.8rem;\n padding: 0.4rem 0; //this is so that there is more click area on mobile\n ", " {\n gap: 0.6rem;\n padding: 0;\n }\n position: relative;\n cursor: ", ";\n\n &:hover .radioOrCheckboxButton_inside_input {\n ", "\n \n // here we manually trigger what apply10PeecentBlackOnHover does\n ", "\n }\n"])), function (_a) {
63
63
  var S = _a.S;
64
64
  return (S ? "0.7rem" : "1rem");
65
65
  }, (0, mixins_1.mediaQuery)("md"), function (_a) {
@@ -11,8 +11,6 @@ exports.StyledSwitch = exports.StyledButtonSlider = exports.StyledSwitchWrapper
11
11
  var styled_components_1 = __importDefault(require("styled-components"));
12
12
  var themes_1 = require("../../themes");
13
13
  var mixins_1 = require("../../../themes/mixins");
14
- var getDynamicColors_1 = require("../../themes/utils/getDynamicColors");
15
- var Typo2_1 = require("../Typo2");
16
14
  var baseStyling_1 = require("../../themes/utils/baseStyling");
17
15
  var white = themes_1.colors.white, grey5 = themes_1.colors.grey5, grey10 = themes_1.colors.grey10, grey20 = themes_1.colors.grey20, grey40 = themes_1.colors.grey40, grey70 = themes_1.colors.grey70, grey80 = themes_1.colors.grey80;
18
16
  exports.StyledSwitchWrapper = styled_components_1.default.div(templateObject_1 || (templateObject_1 = __makeTemplateObject(["\n display: flex;\n align-items: center;\n gap: 8px;\n ", "{\n gap: 6px;\n }\n \n \n"], ["\n display: flex;\n align-items: center;\n gap: 8px;\n ", "{\n gap: 6px;\n }\n \n \n"])), (0, mixins_1.mediaQuery)('md'));
@@ -23,7 +21,7 @@ exports.StyledButtonSlider = styled_components_1.default.div(templateObject_2 ||
23
21
  var disabled = _a.disabled, inactive = _a.inactive, colors = _a.theme.colors;
24
22
  if (disabled)
25
23
  return grey5;
26
- return inactive ? grey10 : (0, getDynamicColors_1.getSecondaryContainer)(colors);
24
+ return inactive ? grey10 : grey80;
27
25
  }, function (_a) {
28
26
  var disabled = _a.disabled;
29
27
  return !disabled && (0, baseStyling_1.applyBlackOverlayOnHover)();
@@ -48,7 +46,7 @@ exports.StyledSwitch = styled_components_1.default.button(templateObject_3 || (t
48
46
  var theme = _a.theme, inactive = _a.inactive, disabled = _a.disabled;
49
47
  return disabled
50
48
  ? grey20
51
- : inactive ? grey70 : (0, getDynamicColors_1.getOnSecondary)(theme === null || theme === void 0 ? void 0 : theme.colors);
49
+ : inactive ? grey70 : grey80;
52
50
  }, function (_a) {
53
51
  var disabled = _a.disabled;
54
52
  return (disabled ? "" : "0px 4px 6px rgba(0, 0, 0, 0.25)");
@@ -195,7 +195,9 @@ function TextInput(_a) {
195
195
  var localize = (0, utilsOolib_1.useLocale)();
196
196
  return (react_1.default.createElement("div", { className: className },
197
197
  react_1.default.createElement(BlockLabel_1.BlockLabel, __assign({}, (0, _EXPORTS_1.getBlockLabelProps)(props))),
198
- readOnly ? (react_1.default.createElement(Typo2_1.UI_BODY_SM, null, type === "password" ? "********" : value)) : (react_1.default.createElement(react_1.default.Fragment, null,
198
+ readOnly ? (type === "url"
199
+ ? react_1.default.createElement(OKELink_1.OKELink, { text: value, to: value })
200
+ : react_1.default.createElement(Typo2_1.UI_BODY_SM, null, type === "password" ? "********" : value)) : (react_1.default.createElement(react_1.default.Fragment, null,
199
201
  react_1.default.createElement(index_styled_1.InputContainerStyled, { type: type, disabled: disabled, iconAfter: iconAfter, onClick: function () { return inputRef.current.focus(); }, size: size },
200
202
  icon && (react_1.default.createElement(DisplayIcon_1.DisplayIcon, { icon: icon, color: disabled ? themes_1.colors.grey40 : themes_1.colors.grey80, size: screenWidth >= (0, mixins_1.getBreakPoint)('md') ? 16 : 18, onClick: !disabled ? iconOnClick || null : undefined, style: { zIndex: 1 } /** so that it stays ahead of the before element inside InputContainerStyled */ })),
201
203
  react_1.default.createElement(index_styled_1.InputStyled, { ref: inputRef, className: "UI_BODY_SM_DF", id: id, type: type, name: type, disabled: disabled, placeholder: localize(placeholder), value: value, onChange: handleOnChange, maxLength: maxLength || DEPRECATED_maxNumLimiter, onBlur: validateOnlyOnBlur ? function (e) { return handleValidate(e, onBlur); } : onBlur, size: size, onFocus: onFocus, autoComplete: "off" }),
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "oolib",
3
- "version": "2.182.0",
3
+ "version": "2.183.0",
4
4
  "description": " OKE Component Library",
5
5
  "main": "dist/index.js",
6
6
  "types": "dist/index.d.ts",