oolib 2.206.0 → 2.206.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.
- package/dist/v2/components/Dropdowns/DropdownMulti/index.js +1 -1
- package/dist/v2/components/Dropdowns/comps/DisplayCompSingle/index.js +1 -3
- package/dist/v2/components/RadioAndCheckbox/comps/CheckboxList/index.js +1 -2
- package/dist/v2/components/RadioAndCheckbox/comps/RadioList/index.js +1 -2
- package/package.json +1 -1
|
@@ -172,7 +172,7 @@ function DropdownMulti(_a) {
|
|
|
172
172
|
var genDisplayComp = function () {
|
|
173
173
|
if (!(value === null || value === void 0 ? void 0 : value.length) > 0)
|
|
174
174
|
return null;
|
|
175
|
-
return isTagsStyle ? (react_1.default.createElement(styled_1.StyledTagsInputWrapper, null, value.map(function (d) { return (0, genTagComp_1.genTagComp)(id, d, { display: true, theme: theme, color: tagColor }); }))) : (react_1.default.createElement("div", { style: { display: "flex", flexWrap: "wrap", gap: "0.5rem" } }, value.map(function (v, i) { return react_1.default.createElement(Typo2_1.
|
|
175
|
+
return isTagsStyle ? (react_1.default.createElement(styled_1.StyledTagsInputWrapper, null, value.map(function (d) { return (0, genTagComp_1.genTagComp)(id, d, { display: true, theme: theme, color: tagColor }); }))) : (react_1.default.createElement("div", { style: { display: "flex", flexWrap: "wrap", gap: "0.5rem" } }, value.map(function (v, i) { return react_1.default.createElement(Typo2_1.UI_BODY_SM_DF, { key: v.value },
|
|
176
176
|
v.display,
|
|
177
177
|
" ",
|
|
178
178
|
i !== value.length - 1 ? ',' : ''); })));
|
|
@@ -16,12 +16,10 @@ var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
|
16
16
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
17
17
|
exports.DisplayCompSingle = void 0;
|
|
18
18
|
var react_1 = __importDefault(require("react"));
|
|
19
|
-
var genLinkOrText_1 = require("../../utils/genLinkOrText");
|
|
20
19
|
var styled_components_1 = require("styled-components");
|
|
21
20
|
var genProfileImg_1 = require("../../utils/genProfileImg");
|
|
22
21
|
var genIcon_1 = require("../../utils/genIcon");
|
|
23
22
|
var Typo2_1 = require("../../../Typo2");
|
|
24
|
-
var OKELink_1 = require("../../../OKELink");
|
|
25
23
|
var DisplayCompSingle = function (_a) {
|
|
26
24
|
var value = _a.value, injectComma = _a.injectComma, S = _a.S;
|
|
27
25
|
var theme = (0, styled_components_1.useTheme)();
|
|
@@ -30,6 +28,6 @@ var DisplayCompSingle = function (_a) {
|
|
|
30
28
|
return (react_1.default.createElement("div", { style: { display: "flex", alignItems: "center", gap: '1rem' } },
|
|
31
29
|
(0, genIcon_1.genIcon)({ icon: value === null || value === void 0 ? void 0 : value.icon, S: S }),
|
|
32
30
|
(value === null || value === void 0 ? void 0 : value.image) && (0, genProfileImg_1.genProfileImg)(__assign(__assign({}, value), { theme: theme })),
|
|
33
|
-
react_1.default.createElement(Typo2_1.
|
|
31
|
+
react_1.default.createElement(Typo2_1.UI_BODY_SM_DF, null, value === null || value === void 0 ? void 0 : value.display)));
|
|
34
32
|
};
|
|
35
33
|
exports.DisplayCompSingle = DisplayCompSingle;
|
|
@@ -55,7 +55,6 @@ var CheckboxInput_1 = require("./comps/CheckboxInput");
|
|
|
55
55
|
var styled_2 = require("./styled");
|
|
56
56
|
var Typo2_1 = require("../../../Typo2");
|
|
57
57
|
var OKELink_1 = require("../../../OKELink");
|
|
58
|
-
var Tags_1 = require("../../../../../components/Tags");
|
|
59
58
|
var optionsContainers = {
|
|
60
59
|
checkbox: styled_1.StyledOptionsContainer,
|
|
61
60
|
tagSelect: styled_2.StyledTagOptionsContainer,
|
|
@@ -102,7 +101,7 @@ function CheckboxList(_a) {
|
|
|
102
101
|
react_1.default.createElement(BlockLabel_1.BlockLabel, __assign({}, blocklabelProps, { marginBottom: readOnly ? '0.4rem' : (blocklabelProps === null || blocklabelProps === void 0 ? void 0 : blocklabelProps.sublabel) ? '1.4rem' : '1.2rem' })),
|
|
103
102
|
readOnly ? (react_1.default.createElement(styled_2.StyledDisplayTagsContainer, null, value === null || value === void 0 ? void 0 : value.map(function (selOp, idx) {
|
|
104
103
|
return react_1.default.createElement(react_1.default.Fragment, null,
|
|
105
|
-
react_1.default.createElement(Typo2_1.
|
|
104
|
+
react_1.default.createElement(Typo2_1.UI_BODY_SM_DF, { key: selOp.value },
|
|
106
105
|
selOp.display_desc || selOp.display,
|
|
107
106
|
" ",
|
|
108
107
|
value.length > 1 && idx < value.length - 1 ? ',' : ''));
|
|
@@ -53,7 +53,6 @@ var _EXPORTS_1 = require("../../../../../utils/_EXPORTS");
|
|
|
53
53
|
var styled_1 = require("../../styled");
|
|
54
54
|
var utils_1 = require("../../utils");
|
|
55
55
|
var comps_1 = require("./comps");
|
|
56
|
-
var Tags_1 = require("../../../../../components/Tags");
|
|
57
56
|
var Typo2_1 = require("../../../Typo2");
|
|
58
57
|
function RadioList(_a) {
|
|
59
58
|
var id = _a.id, _b = _a.injectOtherOption, injectOtherOption = _b === void 0 ? false : _b, valueProp = _a.value, onChange = _a.onChange, saveValueAsString = _a.saveValueAsString, _c = _a.options, options = _c === void 0 ? [] : _c, commonIsCorrectDesc = _a.commonIsCorrectDesc, rightWrongResult = _a.rightWrongResult, _d = _a.optionsLimit, optionsLimit = _d === void 0 ? Infinity : _d, _e = _a.listType, listType = _e === void 0 ? 'horizontal' : _e, disabled = _a.disabled, invert = _a.invert, readOnly = _a.readOnly, S = _a.S;
|
|
@@ -86,7 +85,7 @@ function RadioList(_a) {
|
|
|
86
85
|
var blocklabelProps = (0, _EXPORTS_1.getBlockLabelProps)(props);
|
|
87
86
|
return (react_1.default.createElement("div", { id: id },
|
|
88
87
|
react_1.default.createElement(BlockLabel_1.BlockLabel, __assign({}, blocklabelProps, { marginBottom: readOnly ? '0.4rem' : (blocklabelProps === null || blocklabelProps === void 0 ? void 0 : blocklabelProps.sublabel) ? '1.4rem' : '1.2rem' })),
|
|
89
|
-
readOnly ? ((value === null || value === void 0 ? void 0 : value.display) && react_1.default.createElement(Typo2_1.
|
|
88
|
+
readOnly ? ((value === null || value === void 0 ? void 0 : value.display) && react_1.default.createElement(Typo2_1.UI_BODY_SM_DF, null, value.display_desc || value.display)
|
|
90
89
|
// <TagDisplay display={value.display_desc || value.display} invert={invert}/> //prioritzing display_desc since display of 'other' option is === other
|
|
91
90
|
) : (react_1.default.createElement(react_1.default.Fragment, null,
|
|
92
91
|
react_1.default.createElement(styled_1.StyledOptionsContainer, { listType: listType, S: S }, typicalOptions === null || typicalOptions === void 0 ? void 0 :
|